Anchor link to a home page section DEBUT THEME

Shopify Partner
42 1 2

Hi! I added an announcement bar to announce our new free shipping deal. I want to link it to a Rich Text section below on the same homepage with the specifics for the deal. What I did is I created a second Rich Text section so only this one will be affected, and at the top of this section liquid I added the following:

<a name="envio-gratis"></a>

Then I linked my announcement bar to my homepage like this: 
https://coolpebbles.com.mx/#envio-gratis

It seems to work, but in desktop it links to the section below the one I'm linking and in mobile it links almost to the correct location but the heading of the section is still off screen. Is there a way to precisely display de section when using the link?

I'm suspecting this issue might have to do with a sticky header tutorial I used, but not sure. I do feel confortable with simple code changes myself.
Here's my store! Thanks!


0 Likes