Magento 2 – How to Override Third-Party Module by Theme

magento2moduleoverrides

I know how to override a native Magento 2 module templates such as "magento/module-customer", "magento/module-contact" etc….

But I curious to know, how to override a third party module placed in app/code/Sample_vendor1/Sample_module1 through my theme app/design/frontend/My_vendor/My_theme

Thank You.

Best Answer

It is done in the same way as you would override a core module's template.

vendor/My_vendor/My_theme/SampleVendor1_SampleModule1/templates

If your theme is in app/design, the path would be:

app/design/My_vendor/My_theme/SampleVendor1_SampleModule1/templates
Related Topic