• I am using the TwentyTen theme for my very first site, http://www.TheTycoonInYou.com. This site is an experiment for me, just an effort to learn WordPress. I altered the code to get rid of the title and replace it with a banner graphic, however, my site (the home page) is not showing h1 or h2 tags.

    Can anyone help me figure out how to add these tags? And is there a way to customize the tags for each page and/or post?

    Thank you all, very much!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Don’t edit the Twenty Ten theme! Your changes will be over-written the next time you upgrade WordPress or the theme. For this reason, it is recommended that you consider creating a child theme for your customisations.

    however, my site (the home page) is not showing h1 or h2 tags.

    the h1 tag (on the front) is not showing because you exchanged the code with your image html tag (it is converted into a div, on al other pages):

    <h1><a href="http://www.TheTycoonInYou.com"><img src="http://www.TheTycoonInYou.com/wp-content/uploads/2011/01/cropped-TTIY-Banner.jpg" width="468" height="60" alt="The Tycoon In You" title=""></a></h1>

    and what you called ‘test title for h1’ is the h2 post title.

    <h2 class="entry-title">Test Title for h1</h2>

    customizing could get done by usign the output of body_class() or post_class() of the pages or posts, resp., to style them distinctively in style.css.

    if you look into the html code of your site in the browser, or use a tool such as firebug, then you can easily see these css classes or ids.

    Thread Starter SkyWayne

    (@skywayne)

    esmi–Thank you for that advice. All of my revisions were made via a child theme.

    alchymyth–I have a feeling that you are addressing my issue dead center, but unfortunately, your response is pretty far over my head. I am an extreme newbie. When I check for h1 and h2 tags on my site (using http://www.seositecheckup.com), it reports that my homepage has no h1 or h2 tags.

    I will try playing around with firebug to see if I can figure out how to get these tags included in my site. I was hoping for a solution that I could incorporate into each post or page (something like a plugin that would allow me to specify h1 and h2 tags), since I really suck at code at this point.

    Otherwise, if you can specifically tell me how to adjust the body_class() or post_class()–I’m assuming in style.css–then I would be eternally grateful.

    hotrocks

    (@hotrocks)

    would also love to know if there is a good plug in for this!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Adding h1 and h2 Tags to TwentyTen’ is closed to new replies.