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.

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

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.

Latest Posts

Set Custom CSS IDs for Individual Divi Accordion Items

Assigning unique CSS IDs to specific Divi Accordion items allows for precise control over styling, targeting, and linking within your page content. This ability is particularly useful when you want to apply custom designs or create anchor links to particular accordion...

Enable Swipe Navigation in the Divi Gallery Lightbox

Enabling swipe navigation in the Divi Gallery module's lightbox allows users to seamlessly browse through gallery images by swiping left or right, creating a more interactive and mobile-friendly experience. This functionality can significantly improve user engagement...

Disable Slide-In Animation for Divi Gallery Grid Images

Control how images appear in your Divi Gallery module by toggling the slide-in animation effect for grid layouts. Disabling the slide-in animation allows gallery images to load instantly and appear statically, providing a faster and distraction-free browsing...

Control Image Count Display in Divi Gallery Lightbox

Displaying or hiding the image count in the Divi Gallery module’s lightbox can help customize the user experience, depending on whether you want to give visitors an indication of gallery progress or prefer a cleaner, distraction-free view. The ability to toggle this...

Hide Gallery Image Titles in the Divi Lightbox Overlay

Displaying image titles in the lightbox overlay of the Divi Gallery module can sometimes be distracting or unnecessary, depending on your website’s design and user experience goals. Hiding these titles creates a cleaner and more focused viewing experience for visitors...

Random Posts

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 *.