[Resolved] changing the categories style

Home Forums Support [Resolved] changing the categories style

Home Forums Support changing the categories style

Viewing 15 posts - 1 through 15 (of 19 total)
  • Author
    Posts
  • #493506
    Halil

    Hi there,

    I have tried some css given in the gp forum to change style and look of categories tag, listed at bottom of the posts without success.

    What kind of css code should I write to make categories look like the ones in this sample page?
    https://powerbi.microsoft.com/en-us/blog/

    #493649
    Leo
    Staff
    Customer Support

    Hi there,

    Like having a background color?

    If so try this:

    .cat-links a {
        background-color: #000000;
    }

    Let me know.

    #493712
    Halil

    thanks for answering Leo, I am aware that this request is far more than a regular support.

    I am trying to replicate the same affect as it’s seen on this page (another one)

    https://www.kasperonbi.com/

    U see the red background for each of the cat tags. is it possible to achieve that?

    #493892
    Leo
    Staff
    Customer Support

    Hmm did you try my CSS above? It should do that.

    #494089
    Halil

    Yes I did Leo.

    Partially worked. How can I remove the “folder” icon and “comma” between cats names.

    #494092
    Halil

    Now it’s very close to what I want, except folder icon and comma between cat names.

    #494187
    Halil

    also is it possible to remove tag showing the number of comments?

    #494496
    Leo
    Staff
    Customer Support

    Folder icon can be removed with this:

    .cat-links:before {
        display: none;
    }

    Comment can be done through the customizer: https://docs.generatepress.com/article/blog-content-layout/

    Comma is more complicated: https://generatepress.com/forums/topic/change-category-links-style-position/#post-480156

    #494520
    Halil

    excellent! thanks a lot.

    #494640
    Leo
    Staff
    Customer Support

    No problem 🙂 Cool style I must say!

    #494679
    Halil

    thanks. with the help of gp and you I must say!

    #494964
    Halil

    removing comma didnt work, it messed up everything. is there any other way?

    #494965
    Halil

    I have copied and pasted the code given into functions.php.

    #494966
    Halil

    if category name is long, half of the name breaks into next line. can I show the category name as a whole? not breaking half in one line, another half in the next line?

    #495397
    Leo
    Staff
    Customer Support
Viewing 15 posts - 1 through 15 (of 19 total)
  • You must be logged in to reply to this topic.