Jump to content

Adding Button that links to internal page

Recommended Posts

Once you add the second Button via the Code you have provided how can you get it to link to an internal part of your page, I understand how to change the code to reflect to different URL's but i can't get it work so that it links to somewhere already on my page. 

My existing button is done via the following

<div ID="example"></div>

and my button link then is - #example

and this takes me to a different section of my page.

Any help is much appreciated, thank you.

Link to comment
  • Replies 3
  • Views 1.4k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

1 hour ago, RyanBailey14 said:

Once you add the second Button via the Code you have provided how can you get it to link to an internal part of your page, I understand how to change the code to reflect to different URL's but i can't get it work so that it links to somewhere already on my page. 

My existing button is done via the following

<div ID="example"></div>

and my button link then is - #example

and this takes me to a different section of my page.

Any help is much appreciated, thank you.

Adding Url Slug of the page you want to target

image.thumb.png.390f61cdf8ee56279f31b9fa90d96171.png

The button link should be /url slug#example

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment
  • 3 weeks later...
On 9/17/2022 at 2:27 PM, bangank36 said:

Adding Url Slug of the page you want to target

image.thumb.png.390f61cdf8ee56279f31b9fa90d96171.png

The button link should be /url slug#example

This is if you're adding a link to a separate page, i want the top buttons to link to sections already on my page. so it just scrolls down to where my different sections are. Any Ideas, Many thanks.

Link to comment
17 hours ago, RyanBailey14 said:

This is if you're adding a link to a separate page, i want the top buttons to link to sections already on my page. so it just scrolls down to where my different sections are. Any Ideas, Many thanks.

If it on same page, use this only

Quote

#example

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.