hi there,
is it possible that the icon tooltip stays on click on desktops?
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
hey josue, thx alot, works.
how to make it safe for updates?
is it possible to make somethin like a “custom.js”?
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
ok, ill test that tomorrow. thx josue
Let me know how it goes so i can mark the topic as resolved :)
hey josue,
did it and works. so u can close this topic.