The social icons in Team Section, under each team member, (aside from FB) target “self” window, instead of “_blank”. Any recommendations for getting these to link out?
Hi there
Hope you are having a good day and thank you for your question In order to check your question i need to see your live website, please provide url and i will take a look
Hi Noda,
Thank you for the quick reply!
My site can be found at www.cantedview.com/wordpress
The section in question is the first one down after the jumbotron area (Team, renamed “Meet Mike”).
Best regards,
cantedview
Hey there
You need to install this plugin
then in the custom js you must add this code:
$( document ).ready(function() {
$(".person-content-social li a").attr("target","_blank");
});
Let me konw if this worked
Hi Noda,
Thank you for your response!
Can you supply a link to the needed plugin? I can’t seem to find an attached file or link in your last reply.
Best regards,
cantedview
HI
Sorry, i forgot to paste the link
here is it: Simple Custom CSS and JS – WordPress plugin | WordPress.org
Hi Noda,
Thanks so much… with a little bit of tweaking (to accommodate the snippet supplied being JQuery) this worked perfectly!
Final snippet that worked using Custom CSS & JS (in case anyone following this thread runs into the same thing):
jQuery(document).ready(function( $ ){
$( document ).ready(function() {
$(".person-content-social li a").attr("target","_blank");
});
});
Best regards,
cantedview
God evening
nice to hear
ups, it not necessary to use ready function 2 times, try this method:
jQuery(document).ready(function( $ ){
$(".person-content-social li a").attr(“target”,"_blank");
});