Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #388261

    hi there,

    is it possible that the icon tooltip stays on click on desktops?

    #388610

    Hi,

    Try the following: open js/shortcodes.js and look for line 39:

    new $.AviaTooltip({'class': "avia-tooltip avia-icon-tooltip", data: "avia-icon-tooltip", delay:0, scope: "body"});
    

    Replace it by this:

    new $.AviaTooltip({'class': "avia-tooltip avia-icon-tooltip", event: "click", data: "avia-icon-tooltip", delay:0, scope: "body"});
    

    Regards,
    Josue

    #388724

    hey josue, thx alot, works.

    how to make it safe for updates?

    is it possible to make somethin like a “custom.js”?

    #388840

    Hi,

    This could work, try adding this at the very end of your theme / child theme functions.php file:

    function add_custom_script(){
    ?>
    <script>
    (function($){
        $(window).load(function() {
        	new $.AviaTooltip({'class': "avia-tooltip avia-icon-tooltip", event: "click", data: "avia-icon-tooltip", delay:0, scope: "body"});
        });
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'add_custom_script');

    Regards,
    Josue

    #389727

    ok, ill test that tomorrow. thx josue

    #389848

    Let me know how it goes so i can mark the topic as resolved :)

    #391947

    hey josue,

    did it and works. so u can close this topic.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Icon Tool Tip Question’ is closed to new replies.