Skip to content

Instantly share code, notes, and snippets.

@cesgarma
Last active March 1, 2021 23:48
Show Gist options
  • Save cesgarma/a55bd3731e40c12720a3b7142db40111 to your computer and use it in GitHub Desktop.
Save cesgarma/a55bd3731e40c12720a3b7142db40111 to your computer and use it in GitHub Desktop.
Display horizontal social network icons as a widget on a Divi WordPress site using the HTML widget.
<ul class="et-social-icons">
<li class="et-social-icon et-social-facebook">
<a href="" class="icon">
<span>Facebook</span>
</a>
</li>
<li class="et-social-icon et-social-twitter">
<a href="" class="icon">
<span>Twitter</span>
</a>
</li>
<li class="et-social-icon et-social-youtube">
<a href="" class="icon">
<span>YouTube</span>
</a>
</li>
<li class="et-social-icon et-social-instagram">
<a href="" class="icon">
<span>Instagram</span>
</a>
</li>
</ul>
/* Remove bullets from li tag on footer */
.et-social-icons li:before {
display:none;
}
#footer-widgets .et-social-icons {
display: flex;
flex-direction: row;
justify-content: center;
width: 100%;
}
#footer-widgets .et-social-icons li {
padding: 0;
margin: 10px 10px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment