Jump to content

Toggle Button for Content

Go to solution Solved by rwp,

Recommended Posts

Site URL: https://www.wardrvstorage.com/pay-online

Hello!

I was looking for some help regarding toggle content. I was using this tutorial (https://www.spacetutorials.com/toggle-button-for-content) in order to change between 6 months and 12 months. I edited the code to fit my desired design, however even when using the original I still face the same problem - so I do not think my code-barf was the issue in this particular case.

If you go from the home page to the pay online page, the toggle script fails. It only works if you load into the pay online page directly, or if you refresh it after you are already on the page. I have attached pictures of both it working as well as it failing. I have also tried it with different items, as well as on different browsers without logging in to squarespace just to be thorough.

If anyone knows how to fix this, or has any other toggle script like this, I would be incredibly thankful!

URLs:

https://www.wardrvstorage.com

https://www.wardrvstorage.com/pay-online

Passwords: wardrv

screenshot-www.wardrvstorage.com-2020.08.17-16_29_18.png

screenshot-www.wardrvstorage.com-2020.08.17-16_26_29.png

Link to comment
  • 1 year later...
On 8/17/2020 at 7:02 PM, Anderwood said:

Site URL: https://www.wardrvstorage.com/pay-online

Hello!

I was looking for some help regarding toggle content. I was using this tutorial (https://www.spacetutorials.com/toggle-button-for-content) in order to change between 6 months and 12 months. I edited the code to fit my desired design, however even when using the original I still face the same problem - so I do not think my code-barf was the issue in this particular case.

If you go from the home page to the pay online page, the toggle script fails. It only works if you load into the pay online page directly, or if you refresh it after you are already on the page. I have attached pictures of both it working as well as it failing. I have also tried it with different items, as well as on different browsers without logging in to squarespace just to be thorough.

If anyone knows how to fix this, or has any other toggle script like this, I would be incredibly thankful!

URLs:

https://www.wardrvstorage.com

https://www.wardrvstorage.com/pay-online

Passwords: wardrv

screenshot-www.wardrvstorage.com-2020.08.17-16_29_18.png

screenshot-www.wardrvstorage.com-2020.08.17-16_26_29.png

Hey,

Could you share the code with me? It seems that the article was removed. I'd much appreciate it!

Link to comment
11 hours ago, pkoziol said:

It seems that the article was removed.

I think the article's URL changed: https://www.kenwestphal.io/spacetutorials/toggle-button-for-content/

Improve your online store with our extensions.
About: Squarespace Circle Leader since 2017. I value honesty, transparency, appreciation and great design ♥.
Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™.
Content: Links in my posts may refer to SF Digital products or may be affiliate links.

Buy me a coffee

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.