Liquid, JavaScript, themes, sales channels
Does anyone know how to add an ID to a section on a homepage?
All I want to do is create an anchor link on a button to scroll down to a section, and can't believe there's no way to add an ID to a section out of the box. The limitations with Shopify design are currently driving me mad, I've been searching for hours with no luck.
Has anyone found a solution to this? I'm using the narrative theme - not that I imagine that makes any difference.
Thanks!
Solved! Go to the solution
This is an accepted solution.
Never mind, sorted it.
For anyone one else looking - just add a new Custom Content section, and only have an html element in there - and add your ID in there. Makes a bit of an extra gap in your page layout, but works a charm.
Hi, but where do you actually add the ID for an anchor link in the code? As there's no options on the section settings themselves, and I can't see where to add it from the liquid files.
This is an accepted solution.
Never mind, sorted it.
For anyone one else looking - just add a new Custom Content section, and only have an html element in there - and add your ID in there. Makes a bit of an extra gap in your page layout, but works a charm.
User | RANK |
---|---|
35 | |
24 | |
17 | |
9 | |
9 |
Photo by Marco Verch Sales channels on Shopify are various platforms where you can sell...
By Ollie May 25, 2023Summary of EventsBeginning in January of 2023, some merchants reported seeing a large amo...
By Trevor May 15, 2023With 2-Factor Authentication being required to use Shopify Payments, we’re here to help yo...
By Imogen Apr 26, 2023