1

Magento 2.2.

I have a theme:

/app/design/frontend/Companyname/Newtheme/

I would like to override this PHTML file:

/vendor/magento/module-customer/view/frontend/templates/account/authentication-popup.phtml

What is the correct directory structure in my theme's folder to put my new file?

I have tried:

/app/design/frontend/Companyname/Newtheme/Magento_Customer/view/frontend/templates/account/authentication-popup.phtml

and

/app/design/frontend/Companyname/Newtheme/Magento_Theme/view/frontend/templates/account/authentication-popup.phtml

and

/app/design/frontend/Companyname/Newtheme/Magento_Theme/templates/account/authentication-popup.phtml

p.s. I know this is a really basic question, I am just not understanding the documentation and many examples online. Not sure why.

1

Correct Folder path.. You have mention 2 times frontend...

app/design/frontend/Companyname/Newtheme/Magento_Customer/templates/account/authentication-popup.phtml

Don't forget to run

static:content:deploy
cache:flush
1

It must be.

/app/design/frontend/Companyname/Newtheme/Magento_Customer/templates/account/authentication-popup.phtml

No need to add view/frontend to your custom theme.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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