Tagged: x
-
AuthorPosts
-
July 12, 2016 at 12:42 pm #1083487
Pablo FParticipantHi,
How could I enable target=_blank links on Cards only for external links?
I mean if a link goes to a page within the site opens a self target, if the link opens a page outside the site opens a blank target.
Iยดve seen and tried another solutions from other posts, but I could make them work.
PS: It would be a good idea you implement it in further updates creating a field/check for the target behavior. Why not control the links behavior on Cards if you can control it within Cornerstone in the rest of links?
Kind regards.
July 12, 2016 at 11:08 pm #1084204
FriechModeratorHi There,
We certainly appreciate the feedback! This is something we can add to our list of feature requests. This way it can be taken into consideration for future development. All of these items are discussed with our team internally and prioritized based on the amount of interest a particular feature might receive.
For now you can add this custom JavaScript on your customizer.
(function($) { $( ".external-link .x-face-button" ).attr( "target", "_blank" ); })(jQuery);Then add a class external-link to the card element that has an external link.
Hope it helps, Cheers!
July 13, 2016 at 4:48 am #1084573
Pablo FParticipantThank you,
It works like a charm ๐
July 13, 2016 at 7:42 am #1084780
ChristianModeratorYou’re welcome. Glad we could help. ๐
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1083487 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
