Change H1 on Category pages
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
- The topic ‘Change H1 on Category pages’ is closed to new replies.