admin管理员组

文章数量:1122832

I´m using the atahualpa theme and have the category titles displayed on the category pages. I want the title to have H1 Tags and the site name and info H3 tags.

Right now, the category titles have H2 tags and the site name and info H1. (actually, the only place I want them to have H1 tags is on the homepage)

If you are an expert, please help me out.

I´m using the atahualpa theme and have the category titles displayed on the category pages. I want the title to have H1 Tags and the site name and info H3 tags.

Right now, the category titles have H2 tags and the site name and info H1. (actually, the only place I want them to have H1 tags is on the homepage)

If you are an expert, please help me out.

Share Improve this question asked Jan 27, 2013 at 17:22 user26622user26622 11 silver badge1 bronze badge 2
  • 1 It sounds like you are using <h*> tags for formatting, and you should not be doing that. They are semantic. They should create a logical outline. – s_ha_dum Commented Jan 27, 2013 at 17:26
  • Well, the category pages should have the category name in H1 tags and the posts in that category in H2. Having the site title in H1 tags on more than the homepage hurts your rankings. Therefore, I want to know how to put the category title in H1 (only on category pages) and the site title in H3. – user26622 Commented Jan 27, 2013 at 18:30
Add a comment  | 

3 Answers 3

Reset to default 2

Try <h1><?php single_cat_title(); ?></h1> in Archives (archive.php) on your theme file.

You need to search the files in your theme. Every author is different. It would depend on how your theme is set up. Most themes do have a category.php file. You need to search through whatever files are in your theme for the_title();

find the title for all the category stuff and I am sure you will see something like this

<h2><?php the_title(); ?></h2>

simply change the h2 to an h1 and you will be good.

I finally figured it out, go to ur theme and create a new layout then assign it to the category in archives.

本文标签: seoHow to Make your Category Titles have H1 tags