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;
}
Related Post: Adding CSS to the Divi Theme
0 Comments