• I use free Colormag theme, it is a very useful theme, I need to know how to center category tag buttons using CSS, in post view on on front page, I tried many class without good result. Thank you for any help.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @mariogroleau,

    Thanks for reaching us,

    In-order to center the post categories, please try adding this CSS inside WordPress Dashboard > Appearances > Customize > Additional CSS:

    .cm-post-categories{
    margin-left: 400px
    }

    Let me know if this helps you or not and I will get back to you.

    Regards

    Thread Starter mariogroleau

    (@mariogroleau)

    Thank you, I already tried this solution, but it works only with posts with 4 buttons, on the frontpage it pushed the button on right. I am searching a way to center .cm-post-categories but I don’t find a property for this. I also tried align-self, align-content and align-items without success.

    I had the same result with this other one

    .cm-entry-header-meta{
    margin-left: 400px
    }

    Thread Starter mariogroleau

    (@mariogroleau)

    I did several tests and found this:

    .cm-post-categories{
    margin-left: auto;
    margin-right: auto;
    }

    it seems to work on posts and even on the header page. Applying the auto property to the right and left margin centers the targeted elements.

    Hi @mariogroleau,

    Glad to hear that you have found the solution to center the categories on the front page. For any other issues or confusion let me know and I will get back to you.

    Regards

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Centering Category Buttons’ is closed to new replies.