Skip to content

Instantly share code, notes, and snippets.

@cesgarma
Last active August 12, 2020 00:12
Show Gist options
  • Save cesgarma/f95b67d0cd40e64dcb8ed7189c9c9469 to your computer and use it in GitHub Desktop.
Save cesgarma/f95b67d0cd40e64dcb8ed7189c9c9469 to your computer and use it in GitHub Desktop.
Replace regular bullet points in lists with an icon. This example uses WordPress 'dashicons' font. Make sure you have it loaded on your website. All the icons are here: [https://developer.wordpress.org/resource/dashicons/#yes](url) 1. Put a custom-
.custom-class-name ul
{
list-style-type: none;
}
.custom-class-name ul li
{
text-indent: -1.4em;
margin-bottom: 10px;
}
.custom-class-name ul li:before {
font-family: 'dashicons';
content: '\f147';
margin: 0px 0px 0px -15px;
color: #2899F0;
font-size: 35px;
vertical-align: bottom;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment