[Resolved] Icon before category

Home Forums Support [Resolved] Icon before category

Home Forums Support Icon before category

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #2210049
    iamarghya

    I am trying to give a prefix font awesome icon in the category in the right sidebar but Can’t add it, Would u see and help me?

    #2210058
    David
    Staff
    Customer Support

    Hi there,

    you will need to install the Font Awesome library to use its icons:

    https://docs.generatepress.com/article/font-awesome/

    #2210217
    iamarghya

    Thanks But if we want to add an icon before that category ‘li’ on the sidebar of the page without font awesome or anything can I add in-built gp icons?

    #2210450
    David
    Staff
    Customer Support

    The CSS you’re using has the content property.
    One option is to upload an Image of the icon and then you can display it using content:

    content: url(the_full_url_to_the_image.jpg);

    Or you can use: ‘content: ”;`
    And add the image as a CSS background-image.

    Otherwise you will need to upload a font like FA

    #2210458
    iamarghya

    If I remove the content property is there any other options available?

    #2210465
    David
    Staff
    Customer Support

    The only option is to use a background image on the li

    #2210476
    iamarghya

    ok ok Got it

    #2211178
    David
    Staff
    Customer Support

    Glad to hear that

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