Tagged: 

Viewing 21 posts - 1 through 21 (of 21 total)
  • Author
    Posts
  • #1261346

    Hi,
    I need the accordion to open on hover. How can I can I do that?

    #1261396

    Hey pathemeforestnet,

    Please refer to the following:

    https://kriesi.at/support/topic/accordion-auto-open-on-hover/

    Best regards,
    Jordan Shannon

    #1261469

    Hi Jordan,

    It didn’t work for me

    That link says to do this:
    Try to edit this file in the enfold theme folder: js/shortcodes.js and find this code (line 2605 on enfold 4.0.5):
    thisheading.on(‘click’, function()
    and replace it with this code:
    thisheading.on(‘mouseover’, function()

    But in Enfold 4.7.6.4, that I’m using, that line of code changed from that file to this one:
    /config-templatebuilder/avia-shortcodes/toggles/toggles.js (line 72)
    thisheading.on(‘click’, function()
    which I changed to
    thisheading.on(‘mouseover’, function()

    But it doesn’t work.
    I’m not using any cache plugin.
    And deleted the contents of /wp-content/cache

    What shall I do?

    #1261809

    Hi,
    Can somebody help?

    #1261866

    Bump

    #1261962

    Hello,
    Can somebody help, please?

    #1261995

    Hi pathemeforestnet,

    Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?

    Best regards,
    Victoria

    #1262046
    This reply has been marked as private.
    #1262305

    Hi,
    Any news?

    #1262594

    Hi,
    Can somebody answer?

    #1262814

    Hi pathemeforestnet,

    Are you trying to edit that file in the parent theme?

    Best regards,
    Victoria

    #1262981

    Hi Victoria,

    Yes, I am

    #1263314

    Hi,

    Please, try to solve this ASAP! My customer is tired of waiting!

    #1263466

    Hi,

    Please try to solve this, today is the 9th day since I posted

    #1263716

    Hi,
    Sorry for the very late reply and thanks for the link to your test page.
    Instead of editing the theme javascript files, try adding this code to the end of your functions.php file in Appearance > Editor:

    function custom_script() { ?>
        <script>
    (function($){
      $(document).ready(function(){ 
    $('.toggler').bind('mouseover', function(){ 
        $(this).trigger('click'); 
    });
    });  
    })(jQuery);
    </script>
        <?php
    }
    add_action('wp_footer', 'custom_script');

    this will work on your whole site, let us know if you want it to only work on one page.

    Best regards,
    Mike

    #1263777

    Hi Mike,

    Thank you!
    I will try it.

    #1263780

    Hi,
    We will keep this open to hear back from you.

    Best regards,
    Mike

    #1264779

    Hi,
    It worked great! Thanks!
    One more thing, how can I turn the toggle title into a link, so it can be clickable and open another page?

    #1265001

    Hi,
    Glad this helped, unfortunately, you can not make the toggle title a link to another page because the toggle title is treated as a link with javascript for the accordion.
    Unless there is anything else we can assist with the accordion hover issue shall we close this then?

    Best regards,
    Mike

    #1265018

    Hi Mike,

    Ok, I understand.
    Yes, you can close this.
    Thank you very much for your support!

    Regards

    #1265066

    Hi,

    I’m glad this was resolved. If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 21 posts - 1 through 21 (of 21 total)

The topic ‘Accordion hover’ is closed to new replies.