Jump to content

Click button to display text block

Recommended Posts

Posted

Hello everyone,

I need help to create a fuction where the text block (read circle) is displayed when the button (highlighted in yellow) is clicked. Could you help me ?

I'm not a developer so please explain it simply 🙂 Thanks a lot if you can help!

clickbuttontodisplaytextblock.thumb.JPG.0ea16901c61c5e71e32d69dd0f4b6872.JPG

  • Replies 11
  • Views 4k
  • Created
  • Last Reply

Top Posters In This Topic

  • 3 weeks later...
Posted

I wrote a quick guide here, you can follow it.

https://summaryblock.com/click-button-show-corresponding-section/

In case you can't make it work, you can share link to page where you added buttons + sections + which code you added, I will adjust the code for you.

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!)

  • 2 weeks later...
Posted

Thanks a lot! I have added it to the website and it works when I look at when i'm logged in my squarespace account, but when I try to look at from outside (as password protected website not logged into squaresoace) the feature doesn't work, and we I cick to the buttons it redirects me to the beginning of the same page (reloads the page) and the box doesn't change. Do you knwo why?

Posted
On 3/14/2024 at 8:58 PM, costum-websit said:

Thanks a lot! I have added it to the website and it works when I look at when i'm logged in my squarespace account, but when I try to look at from outside (as password protected website not logged into squaresoace) the feature doesn't work, and we I cick to the buttons it redirects me to the beginning of the same page (reloads the page) and the box doesn't change. Do you knwo why?

Can you share link to page? I can check easier

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!)

  • 2 months later...
Posted

Hello! This works for me when viewing both the desktop and mobile versions on desktop, however, was wondering how to get it working on mobile? When I view on my mobile device, the buttons just keep redirecting me to the page, and not displaying the sections.

 

site: www.weareearthe.com/home

Posted
23 minutes ago, earthesoul said:

Hello! This works for me when viewing both the desktop and mobile versions on desktop, however, was wondering how to get it working on mobile? When I view on my mobile device, the buttons just keep redirecting me to the page, and not displaying the sections.

 

site: www.weareearthe.com/home

You need to make sure option "Open in New Tab" is disabled.

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!)

  • 2 months later...
Posted

I did 3 sections. When the page loads, the first section is visible. When you click on the other two sections and click then the first section, it won't appear again. Same code you used, only changed the names.

Posted
On 8/27/2024 at 8:23 AM, frtokio said:

I did 3 sections. When the page loads, the first section is visible. When you click on the other two sections and click then the first section, it won't appear again. Same code you used, only changed the names.

You can share link to page where you added them, I can check problem easier

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!)

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.