Tagged: x
-
AuthorPosts
-
June 13, 2016 at 2:37 pm #1040184
Shan_HBGParticipantHello,
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!
ShannonJune 13, 2016 at 2:38 pm #1040188
Shan_HBGParticipantThis reply has been marked as private.June 13, 2016 at 7:44 pm #1040509
FriechModeratorHi Shannon,
Thanks for writing in! Would you mind sharing us your shortcodes? In the meantime try placing it on a RAW Content element.
Cheers!
June 14, 2016 at 12:19 am #1040781
Shan_HBGParticipantHi 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!
June 14, 2016 at 12:25 am #1040790
Shan_HBGParticipantHi 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!
June 14, 2016 at 6:12 am #1041151
ChristopherModeratorHi 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.
June 14, 2016 at 10:59 am #1041614
Shan_HBGParticipantThat worked great. Thank you!
June 14, 2016 at 11:37 am #1041671
RahulModeratorYou are most welcome!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1040184 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
