Magento – Magento 2 How to override extension frontend template file

magento2overriding

I have one extension and it has the following file:
app/code/[Namespace]/[Module]/view/frontend/templates/test.html

I want to override that specific file in my theme:
app/design/frontend/[Namespace]/[ThemeName]

So how can I do that please help me.

Best Answer

It will be overridden in the following path.

app/design/frontend/[Namespace]/[ThemeName]/[Namespace_Module]/templates/test.html

For example the file is

app/code/Qasim/test/view/frontend/templates/test.html

It will be overriden in the following path

app/design/frontend/[Namespace]/[ThemeName]/Qasim_test/templates/test.html

Related Topic