Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

accordion menu not working on live page


paulineg

Question

Site URL: https://millimetrearchitecture.com/legal-stuff

hi All,

I install a code block :

 

<script type="text/javascript"
src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script>
 $(document).ready(function(){

 $('.markdown-block .sqs-block-content h3').css('cursor','pointer');

 $(".markdown-block .sqs-block-content h3").nextUntil("h3").slideToggle();

 $(".markdown-block .sqs-block-content h3").click(function()
{$(this).nextUntil("h3").slideToggle();});
 });
 </script>

 

and mark down to insert an accordion menu:

it works perfectly on my page when I am editing it but on the live page it shows all open. Does some knows what is the problem?

 

Edited by paulineg
Link to comment
  • Answers 1
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

1 answer to this question

Recommended Posts

  • 0

Hi. I see it worked here. Sometimes you need to disable ajax loading to make code work properly (Home >Design > Site Styles).

Also you can try this Accordion plugin. Easy to install/customize without using code sytanx like as above.

Email me if you have need any help (free, of course.). Answer within 24 hours.

How to: Setup password & share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care - Learn CSS - Custom Popup - Testimonial Slider

I'm Tuan, blogger/owner of a free library for children in Vietnam. Helping the community is a hobby. Contact me via email.

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...