A customer recently asked me how it would be possible to open the social media links in a new window. Now I will probably release an update to the plugin to add this functionality, but for now I thought it would be a good idea to share a simple way of being able to do this. Even if you don’t use my plugin, being able to set your social media icons to open in a new window is a good practice.

By adding a little piece of JavaScript to your Integration tab in the Divi Theme Options, you can set the social media icons to open in a new window.

In your WP admin, select Theme Options from the Divi menu

Click on the Integration tab

Make sure ‘Enable body code’ is enabled.

Scroll down to the section where it says ‘Add code to the <body> (good for tracking codes such as google analytics)’

Add the JavaScript code snippet below. If you already have some JavaScript there, you can just put this inside the existing <script> tags. If there is nothing there then make sure to wrap the JavaScript with <script> tags.

I have a different problem. I installed the child theme I downloaded it from Elegant Market. It includes already all the SM icons and you can activate them from backend, however, in a WP multisite, when in the site to customize I go to Divi and when i try to enter the Theme Options nothing shows. How can i fix this?

Jonathan
on Apr 15, 2018 at 10:07 am

Hi Pablo

It’s possible that the child theme does not support multisite. I’m having a similar problem with one of my plugins, that I need to update to work on multisite. You’d have to contact the theme developer to find out.

Pablo
on Apr 15, 2018 at 10:46 am

Oh I see, thank you very much, I will contact Elegant Market to find out.