0

I would like to change the text and button value of the Mage2's default cookie policy popup.

See how it looks now: https://imgur.com/a/qvqAGXb

I would like it to read some different text and have a different button text.

How would I do this?

Thanks!

8

Try following:

Copy file to your frontend theme and update text as you want.

FROM: 
vendor/magento/module-cookie/view/frontend/templates/html/notices.phtml

TO: 
app/design/frontend/[VendorName]/[themename]/Magento_Cookie/templates/html/notices.phtml
1
  • how to do it by custom module can u please provide me the steps plz – Nagaraju K Feb 4 '20 at 13:40
1

You can find text in below template location :

/app/code/Magento/Cookie/view/frontend/templates/html/notices.phtml

To change that you should copy notices.phtml file and save this in your theme folder and update as you want.

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.