Divi Theme: Open Social Icons in new a Tab or Window

A quick snippet that will allow you to open Divi Themes social icons in a new tab. Just copy/paste it into the Divi Theme Options > Integration > Add Code To The Head Of Your Blog field and enable the Enable Header Code option.


<script type="text/javascript">
jQuery(document).ready(function(){
jQuery("a.icon").attr('target', '_blank');});
</script>

If it doesn’t work immediately, paste it into a text editor and replace all apostrophes and quotes. Then copy/paste it into the Header Code field.

Leave a Reply

Your email address will not be published. Required fields are marked *