1

I want to make changes to a 3rd party extension (it happens to be the FishPig WordPress extension) but I don't want to edit the files in the extension directly so that I can add updates to the extension easily in the future.

I have a feeling that I should be able to drop files into my custom theme using the same file structure that the template uses but I can't figure out how to get it to work.

e.g. I want to change the file:

app/code/FishPig/WordPress/view/frontend/templates/post/list/renderer/default.phtml

Can I just create the following file to change it (I'm guessing not as it doesn't seem to work):

app/design/vendor/mytheme/view/frontend/templates/post/list/renderer/default.phtml

I'm sure that there is a simple solutions but I can't figure it out.

1
  • 1
    Try theme_dir/FishPig_WordPress/templates/post/list/renderer/default.phtml Commented May 14, 2017 at 2:09

1 Answer 1

2

You need to create Vendor_Module folder in your custom theme

For example to copy this file

app/code/FishPig/WordPress/view/frontend/templates/post/list/renderer/default.phtml

You need to follow this path

app/design/frontend/Vendor/theme/FishPig_WordPress/templates/post/list/renderer/default.phtml
2
  • Would the same work for a layout xml file (it doesn't seem to work)? e.g. if I copy app/code/FishPig/WordPress/view/frontend/layout/wordpress_homepage_view.xml to app/design/frontend/Vendor/theme/FishPig_WordPress/view/frontend/layout/wordpress_homepage_view.xml it has no effect on what is appears on the browser? Commented May 16, 2017 at 7:43
  • 1
    Your Layout Path Like This: app/design/frontend/Vendor/theme/FishPig_WordPress/layout/wordpress_homepage_view.xml Commented May 16, 2017 at 8:27

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.