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 Posts

Change Divi Gallery Module Slider Arrow Size

Adjusting the size of slider arrows in the Divi Gallery module can help improve site navigation, enhance visual consistency, or better match your site’s design preferences. Whether you want to make navigation elements more prominent or integrate them seamlessly with...

Change Divi Gallery Module Slider Arrow Color

Customizing the appearance of your Divi Gallery module can enhance both the aesthetics and usability of your site. Changing the slider arrow color in the Gallery module slider layout allows you to ensure the navigation controls are clearly visible and match your...

Change Slider Arrow Icons in the Divi Gallery Module Slider Layout

Customizing the slider arrows in the Divi Gallery module slider layout allows you to enhance the visual appeal and user experience of your image galleries by aligning navigation icons with your website’s design style. This can help make galleries more intuitive and...

Set a Custom Start Value in Divi Number Counter Modules

Adjusting the starting value for Number Counter modules in Divi enables you to create more dynamic and tailored animations, such as counters that begin at a specific number rather than the default zero. This can enhance the presentation of statistics or milestones on...

Random Posts