[Resolved] How can I center the title of a category archive page?

Home Forums Support [Resolved] How can I center the title of a category archive page?

Home Forums Support How can I center the title of a category archive page?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #584671
    Zad

    Is there any PHP code or CSS code that could possibly center the category title for a category archive page?

    https://www.lesslikely.com/category/statistics/

    In pages like this, I’d like to center the title, “Statistics”. Right now, it’s to the left.

    #584685
    Leo
    Staff
    Customer Support

    Hi there,

    Try this CSS:

    h1.page-title {
        text-align: center;
    }

    Adding CSS: https://docs.generatepress.com/article/adding-css/

    #584731
    Zad

    Thanks, it worked!

    #584732
    Leo
    Staff
    Customer Support

    No problem 🙂

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