Hi there, the hyperlink on our Shopify cookie banner is wrong. If I click on “privacy policy” it sends me to the German web store but it should stay on the English web store.
How and where can I change this? See the screenshots
A Shopify store owner is experiencing an issue where the cookie banner’s “privacy policy” hyperlink incorrectly redirects from the English store to the German store. Screenshots show the problematic banner behavior.
Proposed Solution:
A community member suggested adding custom JavaScript code to the theme.liquid file (just above the tag) to update the URL. Detailed steps were provided for accessing and editing the code through Online Store > Edit Code.
Current Status:
The store owner declined the JavaScript solution, explaining they successfully edited the German and French stores via the Translate & Adapt app and prefer to locate and modify the “original code” for the English cookie banner rather than adding new code. The helper noted they cannot access the paid theme’s code directly without more details or access. The conversation moved to private email communication for further troubleshooting.
Hi there, the hyperlink on our Shopify cookie banner is wrong. If I click on “privacy policy” it sends me to the German web store but it should stay on the English web store.
Hi @Baris ,
I have written custom JS to update the URL. Please add the below script on the theme.liquid file just above
Follow these Steps:
Go to Online Store
Edit Code
Find theme.liquid file
Add the below code just above
Note: Please take backup of the original file so that you can revert the changes.
If you need any help adding this code on the site, you can let me know.
If you require further help to optimize your store, please don’t hesitate to reach out. If you find this information useful, a Like would be greatly appreciated. And if this solves the problem, please Mark it as Solution!
Best Regards,
Makka
Hi Makka, thank you for your efforts. We have activated the Shopify cookie banner and somewhere in the theme codes must be this wrong link which I want just to edit. I don`t want to add more codes in the theme because the other 2 stores (German and French) are working well. I could edit them via Translate & Adapt app. But I cannot find the “original code” for the English cookie which I am looking for.
Thank you for reaching out. Since you’re using a paid theme, I don’t have direct access to the code to pinpoint where the link needs to be updated. However, if you can provide more details or access, I’d be happy to guide you in the right direction.
I have sent you an email