Saturday 30 September 2017

Open Divi social icons in New window

If you are using Divi theme, you also might have wanted social icons links to open in new window rather than redirecting to other website on the same window.

I hope most of the Divi theme user have dropped email to the Divi support, lets see in which version they would fix the same.

For now if you are having the same issue and you want to open social links to open on new tab then you can use the below code snippet to fix this issue by either options:.

Option 1:
  1. Please follow the following steps to fix it:
  2. Login using admin credentials.
  3. Go to divi "Theme Options" then "Integration".
  4. Then copy the below code snippet.

  5.  <script>
         $('.et-social-icon .icon').each(function(){
             $(this).attr('target', 'blank');

  6. Add into the  "Add code to the < body > (good for tracking codes such as google analytics)".
  7. Now save the settings and you are done.

Option 2:

  1. Through FTP go to folder wp-content/themes/divi-child/.
  2. Open EITHER ONE OF THEM "hearder.php" or "footer.php" and add the above mentioned code right after for header.php right after wp_head(); and for footer.php right after wp_footer();

Version at the time of Demonstration
WordPress 4.8.2
Divi Theme 2.6.2

Load disqus comments