• Resolved webrightnow

    (@webrightnow)


    This doesn’t seem to happen in your demos, so I’m guessing it’s a JS conflict, but I can’t figure it out. Can you help? Each time I close an item, the whole page scrolls down automatically.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • preetam27

    (@preetam27)

    hi @webrightnow ,

    please follow step here–>

    in wordpress dahboard please go to plugin > plugin Editor > go to Select plugin to edit and select responsive accordian and collapse now and select it > now go to front > ac-content.php on line no.85 replace

    with this code on that line

    <a  class="<?php if($i!=1){ echo "collapsed"; } ?>"  data-toggle="collapse" data-parent="<?php if($enable_toggle=="no") { ?>#wpsm_accordion_<?php echo $post_id; ?> <?php } ?>" data-target="#ac_<?php echo $post_id; ?>_collapse<?php echo $i; ?>"  href="void(0)"  >
    

    thanks..

    Thread Starter webrightnow

    (@webrightnow)

    Thanks but that causes an error: when clicking on any of the titles, the page reloads to this URL: https://mobilityscotlandltd.co.uk/faqs/void(0
    and I get a 404 error.
    I reinstated the previous code.

    preetam27

    (@preetam27)

    hi @webrightnow ,

    sorry i made a mistake put this code its working now..

    <a class="<?php if($i!=1){ echo "collapsed"; } ?>" data-toggle="collapse" data-parent="<?php if($enable_toggle=="no") { ?>#wpsm_accordion_<?php echo $post_id; ?> <?php } ?>" data-target="#ac_<?php echo $post_id; ?>_collapse<?php echo $i; ?>" href="javascript:void(0);" >

    thanks..

    Thread Starter webrightnow

    (@webrightnow)

    Thanks, that’s working now!

    preetam27

    (@preetam27)

    h @webrightnow ,

    glad that issue has been resolved..please rate our plugin..

    thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Closing the accordion causes unwanted vertical scroll’ is closed to new replies.