[Resolved] Icon not displayed through CSS even though it's present in the theme

Home Forums Support [Resolved] Icon not displayed through CSS even though it's present in the theme

Home Forums Support Icon not displayed through CSS even though it's present in the theme

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #948169
    George

    While using a child theme and inspecting the category blog meta element that contains the folder icon, I can see that the icon is added on the before element like this:

    .cat-links::before {
        content: "\f07b";
    }

    but when trying to add the same CSS to another element:

    .inside-right-sidebar .widget_categories ul li::before {
        content: "\f07b";
    }

    I get the weird character instead. Shouldn’t this just work out of the box?

    #948206
    Leo
    Staff
    Customer Support

    Hi George,

    Can you try this instead?

    .inside-right-sidebar .widget_categories ul li::before {
        content: "\f07b";
        font-family: GeneratePress;
    }

    If this doesn’t work I’ll need to see the issue live unfortunately.

    #948240
    George

    Yes, it works Leo! Is there any way to adjust the size?

    #948329
    Leo
    Staff
    Customer Support

    Adding the font-size: 20px; should work.

    #948380
    George

    Oh yeah, that’s right, thank you Leo!

    #948410
    Leo
    Staff
    Customer Support

    No problem 🙂

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