Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1287244
    Gerald E
    Participant

    Hi iam using this shortcode:

    [prompt type=”left” title=”XXXX” message=”XXXX” button_text=”XXX” circle=”true” href=”http://XXX.com”%5D

    what code do i need to add so that the link opens in a new tab?

    Thanks in advance
    Gerald

    #1287312
    Paul R
    Moderator

    Hi Gerald,

    You can’t add it in your shortcode.

    You can try adding this in cornerstone > settings > Custom javascript

    
    jQuery(function($) {
       $('.x-prompt-section-button a').attr('target','_blank');
    });
    

    or if you want it to affect all your prompt elements, you can add it in Custom > Edit Global Javascript in the customizer.

    Hope that helps

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