Dawn - Anchor Link To ''Rich Text'' Section On Homepage - multilingual webstore

Hi,

I’m using the Dawn 2.0.

https://wortheattt.myshopify.com/

My original store’s language is Dutch and the second is in English.

I added an anchor link to the CTA button in my home page, by clicking the buttons with the text “Aan de slag” (get started). Now the user can be directed to the rich text section above my registration form in the home page.

The problem is when a user is in the English version and press on the button, it leads him to the right section, but it changes automatically to Dutch instead of keeping him on the same language – English.

/#shopify-section-template--14625265319989__165633705810e2ff6f

Can someone advise me please what can I do?

Thanks

Hello @Ben1000 ,

On click of the ‘CTA’ check which one is the selected language.

If it’s English append ‘en’ before the section id ‘#shopify-section-template–14625265319989__165633705810e2ff6f’
e.g. en/#shopify-section-template–14625265319989__165633705810e2ff6f
If it’s Dutch do nothing.

Alternatively connect with the theme support or the app support you are using.

Thanks

Hi @Guleria ,

Thanks but your solution is not something that is possible to implement in the button link label as I showed in my post. I can’t add conditions there.

This is the only one solution for it.

btw you can add JS condition globally or you can take the logic one step forward and then it will apply for a specific one.

Hi @Guleria ,

Thanks, if you have practical way to do it, code you can share with me to implement a solution that might be great. Otherwise I don’t understand what to do further with your advice.

I know how to code, but any solution I write is blocked by Shopify or not possible to implement