Tagged: Accordion
-
AuthorPosts
-
November 18, 2020 at 6:22 pm #1261346
Hi,
I need the accordion to open on hover. How can I can I do that?November 19, 2020 at 1:12 am #1261396Hey pathemeforestnet,
Please refer to the following:
https://kriesi.at/support/topic/accordion-auto-open-on-hover/
Best regards,
Jordan ShannonNovember 19, 2020 at 8:01 am #1261469Hi 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/cacheWhat shall I do?
November 20, 2020 at 3:58 pm #1261809Hi,
Can somebody help?November 20, 2020 at 9:43 pm #1261866November 21, 2020 at 3:38 pm #1261962Hello,
Can somebody help, please?November 21, 2020 at 9:39 pm #1261995Hi 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,
VictoriaNovember 21, 2020 at 11:15 pm #1262046This reply has been marked as private.November 23, 2020 at 11:13 am #1262305Hi,
Any news?November 24, 2020 at 8:28 am #1262594Hi,
Can somebody answer?November 24, 2020 at 9:47 pm #1262814Hi pathemeforestnet,
Are you trying to edit that file in the parent theme?
Best regards,
VictoriaNovember 25, 2020 at 12:25 pm #1262981Hi Victoria,
Yes, I am
November 26, 2020 at 5:58 pm #1263314Hi,
Please, try to solve this ASAP! My customer is tired of waiting!
November 27, 2020 at 9:11 am #1263466Hi,
Please try to solve this, today is the 9th day since I posted
November 29, 2020 at 12:17 am #1263716Hi,
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,
MikeNovember 29, 2020 at 1:19 pm #1263777Hi Mike,
Thank you!
I will try it.November 29, 2020 at 1:33 pm #1263780December 3, 2020 at 2:55 pm #1264779Hi,
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?December 4, 2020 at 1:33 pm #1265001Hi,
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,
MikeDecember 4, 2020 at 2:38 pm #1265018Hi Mike,
Ok, I understand.
Yes, you can close this.
Thank you very much for your support!Regards
December 5, 2020 at 12:15 am #1265066Hi,
I’m glad this was resolved. If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon -
AuthorPosts
- The topic ‘Accordion hover’ is closed to new replies.