Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1276322

    Hello there

    Is there a way to close a hot-spot by clicking anywhere away from it ie. anywhere on the screen apart from within the revealed?

    At the moment you can only close it by clicking the hot-spot again – most annoying!

    The hot-spot NEEDS to be show on ‘Show on hover – hide on click’ as the revealed hotspot shows links within it – you can see on the link in Private Content.

    • This topic was modified 3 years, 11 months ago by whdsolutions.
    #1277247

    Hey whdsolutions,

    Sorry for the delay. This should be possible, but we have to directly modify the AviaTooltip function in the themes\enfold\js\avia.js, and bind a new event to the body tag so that when you click anywhere else, all tooltips will close. Please look for this code around line 1596.

    if (this.options.event != 'click') {
    				this.scope.on('mouseleave', default_tooltips, $.proxy(this.hide_tooltip, this));
    				this.scope.on('click', default_tooltips, $.proxy(this.hide_on_click_tooltip, this));
    			} else {
    				this.body.on('mousedown', $.proxy(this.hide_tooltip, this));
    			}
    

    Below, add this code.

    	this.body.on('click', $.proxy(this.hide_all_tooltips, this));
    

    You may need to toggle or temporarily disable the Performance > File Compression settings after doing the modification.

    Best regards,
    Ismael

    #1277297

    SUPERB!

    Thank you!

    #1277597

    Hi,

    If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Close a hot-spot by clicking anywhere away from it’ is closed to new replies.