Okay
  Public Ticket #1699876
Edit category/author pages
Closed

Comments

  • jairo started the conversation

    Hi,

    How can I edit category or author pages? I mean, the page that shows posts with the same category or the posts that have been written by the same author.

    I want to change the header style.

    Thanks!

  • [deleted] replied

    Hi jairobbva,

    It depends on what do you want to change, can you please tell me what do you need to change in order to give you the proper steps to achieve it if possible. 

  • jairo replied

    Hi, 

    I would like to change the specific header style of that pages (author and category repository). Not the main header, but only the header text color, background color and type (content below: static) of that pages.


    Thanks!

  • [deleted] replied

    Hi jairobbva,

    On Author and Category pages WordPress will add automatically these classes in <body>:

    archive, author – author page

    archive, category– category page

    So you can target the header with any of these CSS classes:

    .archive.author .site-header .menu-column nav li a {
        color: #000;
    }
    Same goes for category page as well. Does this work for you?

  • jairo replied

    Hi,

    Thanks for your answer. Where do I have to write the code? In the custom CSS?

  • [deleted] replied

    Hi jairo,

    In the Custom CSS area.

    Have a great day!