Mar 29, 2019 | Divi Resources

How to Open Social Links in a New Tab in Divi and Extra Theme

Divi and Extra theme has a feature to add social media icons on header and footer. A user can specify social media URLs from the Theme settings page and the respective icon appears on footer or header based on the display setting specified in the Customizer.

The social media icons links, however, open in the same window and thus a user navigates away from the website after clicking the social icons. In order to avoid a visitor dropout because of the Divi and Extra theme social icons opening in the same window, the code snippet provided below can be added to the section.

Divi and Extra both have the option to insert a script tag in website head which can be done from the theme options under the Integration tab and Add code to the < head > of your blog section. It can also be done by putting the code in header.php if a child theme is used.

Open Social Icon Links in New Window – Code Snippet for Divi Theme


The code snippet will be added as shown in the following image.

Open Social Icon Links in New Window – Code Snippet for Extra Theme


The code snippet will be added as shown in the following image.

Divi Social Icons in New Window

The above solution for Divi and Extra theme is tested to work and open social media links in new tab/window for header and footer. In order to create beautiful header and footer sections, you may want to check out our Headers for Divi and Footers for Divi. These two layouts pack contain over 130 custom Header layouts and 110 amazing Footer layouts.

Posted By:
Karan
Karan loves making web beautiful with his keen eyes toward design.

8 Comments

  1. connie

    Hi, tried it, but it didn’t work (okay, it is 5 years after you wrote the article ;)) could you please provide an update?

    Reply
  2. friendorfoley

    Thank you!

    Reply
  3. Eno

    I am using the People module in Divi and I need the socials to open in a new tab.

    Reply
    • Karan

      Hi Eno,

      Just replace the class name in the above code from “et-social-icon” to “et_pb_member_social_links”.

      Reply
  4. Martin

    Exactly what I came for. Just integrated it in Divi, took 1 minute and works fine. Thanks a lot!

    Reply
    • Eno

      Please where did you add the code because it’s not working for me on Divi. I added the code in the header and also tried adding it in the body.

      Reply
      • Karan

        Add the code on header and “Enable header code”.

        Reply
  5. surfzen

    Thanks so much for this! Worked perfectly in Extra theme!

    Reply

Submit a Comment

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

8 Comments

  1. connie

    Hi, tried it, but it didn’t work (okay, it is 5 years after you wrote the article ;)) could you please provide an update?

    Reply
  2. friendorfoley

    Thank you!

    Reply
  3. Eno

    I am using the People module in Divi and I need the socials to open in a new tab.

    Reply
    • Karan

      Hi Eno,

      Just replace the class name in the above code from “et-social-icon” to “et_pb_member_social_links”.

      Reply
  4. Martin

    Exactly what I came for. Just integrated it in Divi, took 1 minute and works fine. Thanks a lot!

    Reply
    • Eno

      Please where did you add the code because it’s not working for me on Divi. I added the code in the header and also tried adding it in the body.

      Reply
      • Karan

        Add the code on header and “Enable header code”.

        Reply
  5. surfzen

    Thanks so much for this! Worked perfectly in Extra theme!

    Reply

Submit a Comment

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

How to Set Up a Knowledge Base or Wiki Site With WordPress and Divi

How to Set Up a Knowledge Base or Wiki Site With WordPress and Divi

If you have developed a software or SaaS, it's needed you provide your customers with a guide on how to use it. If you don't, the chances are you'd get many support tickets just only for the use of it. To overcome this situation, you can create a knowledge base or...

Divi Travel Agency Child Theme to Showcase Your Travel Services

Divi Travel Agency Child Theme to Showcase Your Travel Services

Travel Agencies, holiday planners, and other tour-travel businesses need something unique to provide an awesome online virtual experience of their travel services. If you also belong to the same business niche running your website on WordPress with Divi, this Travel...

Top Divi Website Examples to Inspire Your Design in 2024

Top Divi Website Examples to Inspire Your Design in 2024

Divi is a renowned name in the web design industry that offers unmatched flexibility to open your creativity.  It doesn’t matter how experienced you are with Divi, finding inspirational design ideas from top Divi websites can be a game-changer. To clarify it more...

Divi WooCommerce Extended

Popular on Divi Extended

Divi Plus WooCommerce Extended Divi Layouts Extended Divi Header Layouts