Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #441105

    Hi,

    I guess there is no way, yet, to make a hotspot tooltip sticky?

    I have a lot of information in my tooltip and the user would have to keep the mouse steady for a long time in order to read it all.
    Would it be possible to make the tooltip be visible on mouse-click onto the hotspot and not just on-hover?

    Thanks and cheers
    ~Harry

    #441684

    Hi GCA2014!

    If your using the latest version of Enfold then the image hotspots have an option called “Show tooltips” which you can set to “Always” to have the tooltips display all the time.

    This is the effect we used on this page, http://kriesi.at/themes/enfold-shop/#av-layout-grid-2.

    Cheers!
    Elliott

    #442133

    Thanks for the reply and the help.

    However it’s not quite the behavior I am looking for. I have large tooltips and if I set Show tooltips to “Always” they would flow into each other. I would like only one at a time to be sticky.
    I guess that’s not natively possible and would have to be coded ?

    #443115

    Hi!

    Try opening up /enfold/config-templatebuilder/avia-template-builder/assets/js/avia-tooltip.js and change line 14 from this.

    event: 'mouseenter',       //mousenter and leave or click and leave
    

    To this.

    event: 'click',       //mousenter and leave or click and leave
    

    Cheers!
    Elliott

    #655257

    Hi! I’m trying to do the same, did u had any result?

    #655599

    Hi @frenchfries,

    What problems are you having?

    Best regards,
    Rikard

    #756533

    Is it possible to add this changes in my child theme? Where to place avia-tooltip.js in child theme?

    #758033

    Is this code correct. I want to place avia-tooltip.js in my child theme folder /js/avia-tooltip.js

    function wp_change_avia-tooltip() {
       wp_dequeue_script( 'avia-tooltip' );
       wp_enqueue_script( 'avia-tooltip-child', get_stylesheet_directory_uri().'/js/avia-tooltip.js', array('jquery'), 2, true );
    }
    add_action( 'wp_print_scripts', 'wp_change_avia-tooltip', 100 );
    #759983

    Hi royaltask,

    get_stylesheet_directory_uri() will give you the css folder in child theme and if it is not your intended folder, you should use get_template_directory_uri() instead.

    function wp_change_avia-tooltip() {
        wp_dequeue_script( ‘avia-tooltip’ );
        wp_enqueue_script( ‘avia-tooltip-child’, get_template_directory_uri().’/js/avia-tooltip.js’, array(‘jquery’), 2, true );
    }
    add_action( ‘wp_print_scripts’, ‘wp_change_avia-tooltip’, 100 );

    Let me know if this helps.

    Best regards,
    Victoria

    • This reply was modified 7 years, 8 months ago by Victoria.
Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.