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.

Kevin O'Neill
Web Consultant, WordPress Maven, SEO, Social Media, Front End Developer & Digital Designer
Professional experience includes strategic online campaign strategy and mapping. Website development, design and deployment. Native and web app interface design and web app development/deployment, social media integration and IT liaison.

Focus: WordPress website development & Web Apps.

Specialties: Website usability, web design, UI & UX design, Social media strategy, Search engine optimization.

Leave a Reply

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