Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #439805

    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]

    #439816

    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

    • This reply was modified 9 years, 7 months ago by Yigit.
    #439826
    This reply has been marked as private.
    #439833

    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

    #439838

    Hi,

    Works like a charm. Thank you. Any plans on implementing this as an option?

    #440146

    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

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.