Last active
August 12, 2020 00:12
-
-
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-
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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