Hi, I added external link to my hotspot, but I couldn’t find a way to make it open on a new page. I added an example shortcode for a hotspot I created. Is there something simple I’m missing?
[av_image_spot tooltip_pos='av-tt-pos-above av-tt-align-left' tooltip_width='av-tt-default-width' tooltip_style='main_color' link='manually,http://website.com' hotspot_color='' custom_bg='#6d4293' custom_font='#ffffff' custom_pulse='#ffffff' hotspot_pos='31.2,17'][/av_image_spot]
Merhabalar!
Please add following code to Functions.php file in Appearance > Editor
function add_custom_target(){
?>
<script>
jQuery(window).load(function(){
jQuery('.av-image-hotspot a ').attr('target','_blank');
});
</script>
<?php
}
add_action('wp_footer', 'add_custom_target');
If that does not help, please post the link to your page where we can see the element
Cheers!
Yigit
Hi!
I updated the code i posted here – https://kriesi.at/support/topic/how-to-open-image-hotspot-link-in-a-new-page/#post-439816
Please try it now
Regards,
Yigit
Hi,
Works like a charm. Thank you. Any plans on implementing this as an option?
Hi!
Glad you got it working, I’m not sure about this being implemented to the theme but you can submit a feature requests for it here: https://kriesi.at/support/enfold-feature-requests/
Regards,
Rikard