Shopify themes, liquid, logos, and UX
Hi,
Is it possible to create a link that points to a specific RTF section/element on a page?
Example:
Two buttons on top; Purchase - Sale which links to the sections below, respectively?
Purchase
...
...
Sale
...
...
URL is: https://northequine.dk/services
Thanks for posting your question on Shopify community forum.
So, the thing is Shopify do not have a native functionality for this but you can do it manually with some code edits.
Try these steps:
The first step is to create the sections on the page where we want to link the button to, which you already have.
Now, for identification you need to add a unique ID to each section of the page. For this you need to edit the HTML of the page and add an "id" attribute to each section. For example:
<div id="section-1">
<!-- Add its related content to section 2 -->
</div>
<div id="section-2">
<!-- Add its related content to section 2-->
</div>
<!-- Similary add for other sections -->
3. Once the above is done, you need to create links that point to the specific sections using anchor tags. The "href" attribute should contain the ID of the corresponding section. For example.
<a href="#section-1">Go to Section 1</a>
<a href="#section-2">Go to Section 2</a>
<!-- You can add more link if you have more -->
4. Now you need to place the anchor links wherever you want on your page.
5. Save your changes and preview the page to ensure the bookmark links are working correctly. When clicked, the links should scroll the user to the corresponding sections.
I hope this helps. Should you have further questions, feel free to reach out.
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025