2

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.

asked Mar 5, 2018 at 11:36

1 Answer 1

5

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

answered Mar 5, 2018 at 11:55
3
  • Hi @Qasim Let me try this and after it I have to RUN any command? Commented Mar 5, 2018 at 12:00
  • @Rajan you need to remove the pub/static var/ and run sudo php bin/magento setup:static-content:deploy after this Commented Mar 5, 2018 at 12:21
  • still it generated from the extension file app/code/[Namespace]/[Module]/view/templates/test.html What can I do so it will be generated from the app/design/frontend Please help me if you have already fixed it. Commented Mar 6, 2018 at 5:52

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.