Hi Team Kriesi,
read a lot in this forum, but nothing helped.
I want to achieve that the tooltips for icon show up on iOS for mobile devices. Guess best way would be to make the icons clickable, so the tooltip shows up after clicking the icon.
tried this code from a thread
<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');
This Code looks good, but those classes are not here anymore in 4.5.2.
Can you provide some new code for this behaviour?
Thanks in advance.
Hey xxtita,
Best regards,
Victoria
Hi xxtita,
Try the code like this:
<script>
(function($){
$(window).load(function() {
new $.AviaTooltip({'class': "av-icon-char", event: "click", data: "avia-icon-tooltip", delay:0, scope: "body"});
});
})(jQuery);
</script>
<?php
}
add_action('wp_footer', 'add_custom_script');
If you need further assistance please let us know.
Best regards,
Victoriad
Hi Victoria,
this code works on the chrome-browser-emulator for iphone, but it doesnt work on real iOs for iphone or ipad. At least not on my devices.
So, any idea how can i achieve this goal?
Hi xxtita,
There is no click event on mobile devices.
https://micropyramid.com/blog/how-to-use-jquery-mobile-touch-events/ You might want to add the “tap” event too.
Best regards,
Victoria