Tagged: image with hotspots
-
AuthorPosts
-
March 29, 2019 at 12:35 pm #1084547
Hello,
i’d like to place a “Content Slider” element via shortcode into one of the hotspots of “Image with Hotspots”. Now the problem is that it dosn’t shows up in the tooltip, but the space is used.
If I change the tooltips to show permanently instead of mouse over, it works.My guess is, that the shortcode-element is hidden behind the tooltip, but I cant’t find the right place to change it.
Could you give me some advice please.April 1, 2019 at 3:26 am #1085242Hey qsamathos,
Thank you for using Enfold.
We haven’t had anyone request that before. It’s probably not working because the tooltips aren’t rendered until the hotspots are hovered. This script might help initialize the slider when the hotspots are hovered.
if( ! function_exists( 'ava_init_slider_tooltip' ) ) { function ava_init_slider_tooltip(){ ?> <script type="text/javascript"> (function($) { //activate the aviaslider $(document).ready( function() { if($.fn.aviaSlider) { $('.av-display-hotspot .av-image-hotspot_inner, .av-hotspot-image-container').on('mouseover', function() { $('.avia-content-slider-active', 'body').aviaSlider({wrapElement: '.avia-content-slider-inner', slideElement:'.slide-entry-wrap', fullfade:true}); }); } }) })(jQuery); </script> <?php } add_action('wp_footer', 'ava_init_slider_tooltip'); }
Best regards,
IsmaelApril 4, 2019 at 10:33 am #1086957Hey Ismael, thank you for the Script.
I tried to place it on the right spot, but I can’t get it working. Maybe you could help where the right place is to integrate, that would be great.
Thank you.April 8, 2019 at 2:34 am #1088086Hi,
The script should be added in the functions.php file. Did you add the code there?
Best regards,
IsmaelApril 8, 2019 at 11:03 am #1088234Hi Ismael, yes this was the first place where I put your code. I use the Child-Theme, could this be a problem here?
April 9, 2019 at 2:35 am #1088490Hi,
That is actually the recommended way of doing it. Would you mind posting the login details in the private field? We would like to test the script.
Best regards,
IsmaelApril 9, 2019 at 11:49 am #1088631Thanks for your help!
April 12, 2019 at 12:02 am #1089779 -
AuthorPosts
- You must be logged in to reply to this topic.