1

Is there a way to extend the layout and template files of an extension? Say I have an extensions file located at app/code/<vendor>/<extension/view/frontend/layout or a file located at app/code/<vendor>/<extension/view/frontend/templates, how would I extend/override those files in my own custom theme?

1 Answer 1

2

You create a directory in your theme directory that matches the desired module, for example Vendor_Extension. Inside this directory you make the layout and templates directories where you put the .xml/.phtml files to be extended/overridden. These files must use the same name as their target file. If the target template file is in a subdirectory, must also duplicate the subdirectory structure.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.