Site logo

Archived topic

Recent post widget title icons

5 replies · Started by Haider on January 2, 2022

Viewing posts 1–6 of 6

Hi there,

How can I add icons instead of bullet points for titles in the recent post widget
https://ibb.co/4WYnFjx
(arabic Wordpress screenshot - so the left side is what that final product should look like)

I figured this css class for latest posts, I think!
.wp-block-latest-posts

and then I wanted to use this icons \270D

so with my humble experience I attempted to link both as

.wp-block-latest-posts li {
    content: '\270D';
}

But that's not working! Any help, thank you

Hi Ying

I use latest post block in few pages
But here are the main ones, links attached

Thank you

Hi there,

try this CSS:

.wp-block-latest-posts li {
    position: relative;
}
.wp-block-latest-posts li a:before {
    content: '\270D';
    position: absolute;
    font-size: 18px;
    right: -1.5em;
}

Worked like a treat.

Thank you David

Glad to hear that!

This archived topic is closed to new replies.