-
AuthorPosts
-
May 1, 2017 at 2:38 pm #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/sectionMay 1, 2017 at 4:20 pm #785831Hey 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,
NikkoMay 2, 2017 at 11:03 am #786275Hi 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?
May 2, 2017 at 12:39 pm #786304Hi,
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,
NikkoMay 2, 2017 at 12:41 pm #786306Ok No Worries.
Here you go : (Attached privately)
May 2, 2017 at 1:56 pm #786342Hi,
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,
NikkoMay 2, 2017 at 2:11 pm #786350Thank you so much for your swift help!! Always appreciated!!
May 2, 2017 at 6:09 pm #786601Hi,
Glad we could help. Thanks for using Enfold :)
Best regards,
NikkoMay 2, 2017 at 6:21 pm #786607Hi,
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 -
AuthorPosts
- The topic ‘Accordion Auto open on Hover’ is closed to new replies.