Hide Unlinked Icons in the Social Media Module

Written by Dan Mossop

The Divi Theme includes a social media module which can be used to display social icons on a site. By default all icons configured in the module will display, even if no link has been entered for them. Here's how to hide any icons in the social media follow module which do not have a link set.

Hide Unlinked icons in the Social Media Module using CSS

You can use the following CSS to hide any icons in the social media module which do not have a link set on them. 

.et_pb_social_media_follow .et_pb_social_network_link > a[href="#"],
.et_pb_social_media_follow .et_pb_social_network_link > a[href=""] {
    display:none;
}

Optimize Your Social Media Modules Effortlessly

Streamline your Divi social media modules with advanced customization options. Easily hide unlinked icons and enhance the visual consistency of your site. Ensure your social links maintain a professional appearance across all pages and 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 *.

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