• Resolved asturkmani

    (@asturkmani)


    Dear Accordion Team,

    Many thanks for the excellent plug-in. Currently, when I create an accordion and click to expand/collapse it, it attempts to autoscroll which isn’t the behaviour I’d like. I’m currently using WordPress with the EnFold theme and not sure whether this behaviour is from the Enfold theme or from Accordion.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @asturkmani

    You need some changes fix this issue.Please following below steps.
    Go to Plugin directory -> responsive-accordion-and-collapse -> front -> open ac-content.php file.
    Go to line number 79.
    replace below code

    <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 } ?>" href="#ac_<?php echo $post_id; ?>_collapse<?php echo $i; ?>" >

    to

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

    (@asturkmani)

    Perfect, this worked. Thanks!

    Hi @asturkmani

    Glad that your issue has been resolved. If you like our plugin please rate us.

    Thanks

    Thanks! Worked for me too. It need to be added to the next update ??

    Hi @titipotter

    Glad that your issue has been resolved.

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Auto scroll on expand’ is closed to new replies.