[Resolved] Recent post widget title icons

Home Forums Support [Resolved] Recent post widget title icons

Home Forums Support Recent post widget title icons

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2066877
    Haider

    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

    #2066895
    Ying
    Staff
    Customer Support

    Hi Haider,

    Any chance you can link us to the site in question?

    You can use the private information field.
    https://docs.generatepress.com/article/using-the-premium-support-forum/#private-information

    Let me know 🙂

    #2067047
    Haider

    Hi Ying

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

    Thank you

    #2067367
    David
    Staff
    Customer Support

    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;
    }
    #2067727
    Haider

    Worked like a treat.

    Thank you David

    #2067760
    David
    Staff
    Customer Support

    Glad to hear that!

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.