How to add badge icons
To add one of the standard icons before a badge, use the following format by adding a icon name separated by a colon (:
):
Available Icons:
award
bag-check
balloon-heart-fill
bell
bookmark-heart
bookmark-star
box2-heart
boxes
chat-heart-fill
check-all
check-circle
check-lg
check-square-fill
circle-fill
coin
controller
earbuds
emoji-frown
emoji-sunglasses
fire
gem
hand-thumbs-down
hand-thumbs-up
headphones
heart
house-check
lightning-charge-fill
music-note-beamed
patch-check
patch-exclamation
rocket-takeoff
star-fill
stars
trophy
Example:
To add the "award" icon with a badge "Editor's choice", use:
Custom SVG Icons
To add custom SVG icons for badges, use the cegg_svg_icon_list
filter. This filter allows you to easily extend the list of available icons by adding new ones. Below is an example of how to add custom icons:
For more SVG icons, you can explore a large collection from the Bootstrap Icons Library.
Last updated