Site logo

Archived topic

Alternative Bullet Styles

7 replies · Started by MMS on November 11, 2022

Viewing posts 1–8 of 8

Hi, I've changed my bullet points to arrows using the following CSS code.

.entry-content ul li:before {
content: "\279C";
position: absolute;
left: -1.5em;
color: #689931;
}

But on the following page, I have a list of Pros / Cons. https://makemesustainable.com/what-are-solar-screens-for-windows/

This list uses bullet points but is there a way to change the default style of the bullets to be tick icons for the Pros & cross icons for the list of Cons?
Thanks

Hi there,

1. Select the List Block for Pros and in Advanced > Additional CSS Class(es) add: pro-list
2. Repeat for the Con list and add con-list

Now you can do this:


.entry-content ul.pro-list li:before {
    content: "\2713";
    color: #689931;
}

.entry-content ul.con-list li:before {
    content: "\2717";
    color: red;
}

Just change the Unicode for your symbols and the color if you want that to change that.

Apologies but where do I find the List Block? I can find Additional CSS under customize but not Advanced > Additional CSS Class

Are you using the Block Editor? If yes, then edit that page, and select the List. In the sidebar settings for that block you will see the Advanced Panel.

Thanks that works great.

Glad to hear that!

This archived topic is closed to new replies.