Forums

Change H1 on Category pages (1 post)

  1. jackmclaren86
    Member
    Posted 4 months 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

Reply

You must log in to post.

About this Topic