Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #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.

    #1085242

    Hey 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,
    Ismael

    #1086957

    Hey 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.

    #1088086

    Hi,

    The script should be added in the functions.php file. Did you add the code there?

    Best regards,
    Ismael

    #1088234

    Hi Ismael, yes this was the first place where I put your code. I use the Child-Theme, could this be a problem here?

    #1088490

    Hi,

    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,
    Ismael

    #1088631

    Thanks for your help!

    #1089779

    Hi,

    Thanks for the update.

    The slider displays now but you may find a few quirks because it’s not really intended to work inside a hotspot tooltip.

    Best regards,
    Ismael

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.