문제

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.

도움이 되었습니까?

해결책

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

setup:static-content:deploy
cache:flush

다른 팁

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 magento.stackexchange
scroll top