If you ever use Divi to create WordPress, you may have noticed that the social media icons don’t redirect the target to a new tab. That bugs me like no other! Any time I take a user to an external site via a link from my site, I use a _blank target to open the site in a new tab. Unfortunately, Divi does not have anything in the portal interface that allows you to change the target. So we must turn to code:
jQuery(document).ready(function(){
jQuery(“.et-social-icon a”).attr(‘target’, ‘_blank’);
});
</script>
This simple jQuery fix works like a charm. Happy WordPressing and Divi-ing!







0 Comments