WordPress.org

Ready to get started?Download WordPress

Forums

Change H1 on Category pages (1 post)

  1. jackmclaren86
    Member
    Posted 1 year ago #

    There do not seem to be any up to date posts on this so I would really appreciate someones help. With category pages on wordpress the H1 tags are combined of all the posts in that category and the category name itself. I just want it to be the category name.

    From my varied knowledge I understand the category template is what needs to be changed. Currently by default I have:

    <h1 class="archive-title"><?php printf( __( 'Category Archives: %s', 'twentytwelve' ), '<span>' . single_cat_title( '', false ) . '</span>' ); ?></h1>

    What do I need to change to ensure the h1 tag is the category name and ideally h2 tages are the post titles?

    Thanks in advance

Topic Closed

This topic has been closed to new replies.

About this Topic