How to Make Divi Social Icons Open in a New Tab
<a href=”<?php echo esc_url( et_get_option( ‘divi_twitter_url’, ‘#’ ) ); ?>” class=”icon” target=”_blank”>
However, do not save this file to its default location. Save it to your Divi child theme folder (if you don’t have a child theme yet, check this article) and don’t forget to keep the same directory path – so you’ll need to create the “includes” folder in your child theme’s main folder and then place the social_icons.php file into it.
Also make sure that the “” characters are copied correctly and are not “” or ¨¨. Sometimes you may need to enter them manually into the code snippet, because they may not be copied correctly.
That’s all from me for now. Hope I have helped some of you. :)
WordPress expert. Divi user since 2014. I blog about WordPress and Divi, my favorite WordPress theme. When I’m not working with WordPress or writing an article for this blog, I’m probably learning Italian. You can read more about me here.