Open Divi Social Media Icons in a New Tab

Written by Dan Mossop

Ensuring your website's social media icons open in a new browser tab creates a seamless user experience and keeps visitors engaged with your site while allowing them to explore your social media presence. This approach prevents users from navigating away from your site by keeping your content accessible. In this guide we show you how to adjust your Divi-powered site's social media icons using either Divi Booster or jQuery so that clicking them opens the links in a new tab.

Open Divi Social Media Icons in a New Tab using Divi Booster

This method demonstrates how to configure Divi’s header and footer social media icons to open in a new browser tab using the Divi Booster plugin. It provides a quick and user-friendly way to enhance your site’s navigation by enabling a simple checkbox, making it ideal for users who want an easy, no-code solution.

Access and Expand Divi Booster Social Icon Settings

In your WordPress dashboard, open the Divi Booster settings by selecting 'Divi Booster' under the Divi menu. Within Divi Booster, expand the 'Site-wide Settings' panel, then the 'Icons' sub-panel to reveal the icon options.

Enable 'Open Social Media Icon Links in a New Tab'

In the Icons options, check the box labeled 'Open social media icon links in a new tab' to have your social links open in new tabs.

Save Your Changes

Don't forget to click 'Save Changes' at the bottom of the Divi Booster settings page so your update takes effect.

Check Your Social Media Icons

Head to your site's front-end and click a social media icon, such as Facebook, in your header or footer. The link should now open in a new browser tab, helping visitors stay on your site.

Open Divi Social Media Icons in a New Tab using jQuery

This method demonstrates how to make the Divi theme’s header and footer social media icons open in a new browser tab by adding a small jQuery script to the Theme Options integration panel. This approach is quick, requires no editing of theme files, and applies the "open in new tab" behavior site-wide for all relevant social icon links.

Open the Integration Tab in Divi Theme Options

Navigate to Divi > Theme Options, and select the 'Integration' tab at the top of the page.

Add the jQuery Script

Scroll down to the 'Add code to the of your blog' box. Paste in the following code to automatically open all social icon links in a new tab:

<script>
jQuery(function($) {
    $('.et-social-icon a, .et-extra-social-icon a').attr('target', '_blank');
});
</script>

Save and Test Your Social Icons

Click 'Save Changes' at the bottom of Theme Options. Now, go to your website's front-end and click a social media icon (such as Facebook) in your header or footer. The link should open in a new browser tab, confirming your update was successful.

Conclusion

With either the Divi Booster plugin or a simple jQuery script in Theme Options, you can easily ensure your Divi site's social media icons open in new tabs—helping keep visitors engaged on your site. Choose the method that fits your workflow and enjoy a more user-friendly experience for your audience.

Check out Divi Booster

Divi Booster upgrades Divi with hundreds of new features to help you build awesome sites with ease, including easy controls for optimizing social media icon behavior and more.

About Dan Mossop

Dan is a Scottish-born web developer, now living in Brisbane with his wife and son. He has been sharing tips and helping users with Divi since 2014. He created Divi Booster, the first Divi plugin, and continues to develop it along with 20+ other Divi plugins. Dan has a PhD in Computer Science, a background in web security and likes a lot of stuff, 

0 Comments

Submit a Comment

Comments are manually moderated and approved at the time they are answered. A preview is shown while pending but may disappear if your are cookies cleared - don't worry though, the comment is still in the queue.

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

We may earn a commission when you visit links on our website.

Latest From Divi Booster

Set Hover Color for Menu Links in the Divi Menu Module

Customizing the hover color of menu links lets you enhance the user experience and maintain visual consistency with your website’s brand. By setting a specific hover color, you can guide visitors' attention and improve navigation feedback. In this guide we show you...

Enable Automatic Looping for YouTube Videos in the Divi Video Module

Enabling automatic looping for YouTube videos in your Divi video module ensures that content plays seamlessly and continuously without interruption. This feature can enhance user engagement, highlight key information, or create dynamic visual effects on your website....

Hide Video Controls in Divi Video Module

Disabling YouTube video controls in the Divi Video Module helps create a seamless, distraction-free viewing experience for your site visitors. This approach is useful when you want full control over how your video content appears and is interacted with on the page, or...

Mute YouTube Videos by Default in the Divi Video Module

In the Divi Video Module, starting your YouTube videos muted by default can create a more user-friendly browsing experience on your webpage. It is particularly beneficial for reducing distractions, enhancing visitor engagement, and providing a seamless content preview...

Autoplay Videos in Divi Video Module

Enabling videos in your Divi video module to start playing automatically can enhance both the site's design and user engagement. To ensure full compatibility with browser requirements, such as Chrome's autoplay policy, it's often necessary to start your videos muted...

Random Divi Posts