Social Media Sabbatical

Clean Slate

I’ve been thinking a lot about my use of the internet and it’s associated tools and apps lately. I’ve never been the biggest fan of social media, but since roughly 2015 I’ve found myself getting drawn into the online conversation more and more, so much so that I’ve recently realised I may have a little bit of an addiction.

A few days ago someone suggested Catherine Price’s book How to Break Up with Your Phone. (The irony of the fact that it was suggested because I follow that person on Twitter is not lost on me). It made me realise that I need to take a long hard look at my social media and mobile phone usage and make some changes.

As such, like others before me, I’ve decided to take a month long sabbatical from social media, for the month of October. This may prove difficult, as I am attending WordCamp Johannesburg at the end of the month, and the need to live tweet stuff will be strong, but it’s as good a time as any to see if I really can do it. Hopefully it will allow me to change my internet habits and spend more time on things that matter.

In the meantime, I hope to blog more here during the course of the month, which will automatically be shared to my social media accounts. So if you want to converse with me online, feel free to leave a comment on one of my blog posts, email me (my name at gmail) or find me in the various Slack channels I hang out in.

Until the 1st of November then…

Opening your Divi Header and Footer icons in a new window.

A few weeks ago I released the Atlantic Wave Social Media plugin for Divi. The plugin extends the built in Divi header and footer social media icon set by adding up to 13 additional social media icons.

A customer recently asked me how it would be possible to open the social media links in a new window. Now I will probably release an update to the plugin to add this functionality, but for now I thought it would be a good idea to share a simple way of being able to do this. Even if you don’t use my plugin, being able to set your social media icons to open in a new window is a good practice.

By adding a little piece of JavaScript to your Integration tab in the Divi Theme Options, you can set the social media icons to open in a new window.

  1. In your WP admin, select Theme Options from the Divi menu
  2. Click on the Integration tab
  3. Make sure ‘Enable body code’ is enabled.
  4. Scroll down to the section where it says ‘Add code to the <body> (good for tracking codes such as google analytics)’
  5. Add the JavaScript code snippet below. If you already have some JavaScript there, you can just put this inside the existing <script> tags. If there is nothing there then make sure to wrap the JavaScript with <script> tags.
jQuery(document).ready(function($){
    $('.et-social-icon .icon').each(function(){
        $(this).attr('target', 'blank');
    });
});

And there you go, all your social media icons should now open in a new window!