Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1040184
    Shan_HBG
    Participant

    Hello,

    I’m using the “extra” shortcode in Cornerstone to add a popover and link to my text/icon. It looks and works well, but it’s not opening the link in a new window with the target=”blank” attribute.

    Can you please help me?

    I tried some javascript from the forum in my customizer, but it didn’t fix the problem.

    Thank you!
    Shannon

    #1040188
    Shan_HBG
    Participant
    This reply has been marked as private.
    #1040509
    Friech
    Moderator

    Hi Shannon,

    Thanks for writing in! Would you mind sharing us your shortcodes? In the meantime try placing it on a RAW Content element.

    Cheers!

    #1040781
    Shan_HBG
    Participant

    Hi Friech,

    Sure thing – here’s the code I’m using:

    [extra href="https://vawhocan.com/services/va-who-can-write-copy/" target="_blank" info="popover" info_place="top" info_trigger="hover" info_content="Get copy that makes them want what you've got."] [x_icon type="pencil" class="homeicon"]</br>Writing, Editing </br>& Brainstorming[/extra]

    What is a “RAW Content” element? Like a regular tag?

    Thank you!

    #1040790
    Shan_HBG
    Participant

    Hi Friech,

    Sure thing – here’s the code I’m using:

    [extra href="https://vawhocan.com/services/va-who-can-write-copy/" target="_blank" info="popover" info_place="top" info_trigger="hover" info_content="Get copy that makes them want what you've got."] [x_icon type="pencil" class="homeicon"]</br>Writing, Editing </br>& Brainstorming[/extra]

    What is a “RAW Content” element? Like a regular <a> tag?

    Thank you!

    #1041151
    Christopher
    Moderator

    Hi there,

    You can achieve it by adding JS code.
    Please add following code in Customize -> Custom -> JavaScript :

    jQuery(".x-extra").attr("target","_blank");

    Hope that helps.

    #1041614
    Shan_HBG
    Participant

    That worked great. Thank you!

    #1041671
    Rahul
    Moderator

    You are most welcome!

  • <script> jQuery(function($){ $("#no-reply-1040184 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>