Jump to content

Accordian - page load

Recommended Posts

Hello, I'm having issues with my accordion text default opening when loading the page before closing.

Ideally I'd like it to default close on page load. Any ideas?

Here's the page header code I used:

<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script><script>
$('.markdown-block .sqs-block-content h3').addClass('ui-closed').css('cursor','pointer');
$(".markdown-block .sqs-block-content h3").nextUntil("h3").slideToggle();
$(".markdown-block .sqs-block-content h3").click(function() {

$(this).toggleClass('ui-closed ui-open');

website: www.tashho.co.uk

password: plantsarecool

Link to comment
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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.