Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #785742

    Hi there

    I would like to know if it is possible to have the accordion tab auto open a section once you hover over it?
    At the moment you have to click on it in order for it to open and close a tab/section

    #785831

    Hey Willem7904,

    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()

    Let us know if this helps :)

    Best regards,
    Nikko

    #786275

    Hi There.

    I tried it but no joy.. I have included my login credentials for you if you can maybe have a look for me please?

    #786304

    Hi,

    Thanks for providing the login details, can I request for the ftp access? it’s much safer to do it via ftp than editing files in WP Dashboard.

    Best regards,
    Nikko

    #786306

    Ok No Worries.

    Here you go : (Attached privately)

    #786342

    Hi,

    Thanks for providing the ftp access, I have checked it and it seems it’s done already, it was just cached that’s why it doesn’t change the behavior, I have cleared the cache in WP Rocket and it’s working, also since I’ve seen you are already using child theme and any changes done to the parent theme will be gone after an update, I have created a js folder in your child theme, copied shortcodes.js from parent theme to the child theme and then added this code in functions.php so it uses shortcodes.js in the child theme:

    // Replace shortcodes.js
    function change_shortcodesjs() {
       wp_dequeue_script( 'avia-shortcodes' );
       wp_enqueue_script( 'avia-shortcodes-child', get_stylesheet_directory_uri().'/js/shortcodes.js', array('jquery'), 2, true );
    }
    add_action( 'wp_enqueue_scripts', 'change_shortcodesjs', 100 );

    Let us know if it’s all good on your end :)

    Best regards,
    Nikko

    #786350

    Thank you so much for your swift help!! Always appreciated!!

    #786601

    Hi,

    Glad we could help. Thanks for using Enfold :)

    Best regards,
    Nikko

    #786607

    Hi,

    Glad we could help!
    Please take a moment to review our theme and show your support https://themeforest.net/downloads
    To know more about enfold features please check – http://kriesi.at/documentation/enfold/
    Thank you for using Enfold :)

    Best regards,
    Andy

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Accordion Auto open on Hover’ is closed to new replies.