WordPress.org

Forums

Adding h1 & h2 tags (11 posts)

  1. jamiemch
    Member
    Posted 2 years ago #

    Hi,

    I'm trying to optimise my site but am struggling with h1 and h2 tags. Basically - I don't have any!

    Ideally I'd like my site description to be h1 and post titles h2, can anyone please tell me how to do this?

    My site is - thequeersphere.com

  2. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    Unless you would be comfortanle turning nearly all of the `<h3></h3>

  3. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    Unless you would be comfortanle turning nearly all of the `<h3></h3>

  4. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    Unless you would be comfortanle turning nearly all of the `<h3></h3>

  5. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    Unless you would be comfortable turning nearly all of the <h3></h3> tags into <h1> and/or <h2> tags right across all templates in your theme, I'd suggest you start looking for another theme.

  6. jamiemch
    Member
    Posted 2 years ago #

    I like my theme a lot so don't really want to change.

    My h3 tags are just in the sidebar and I doubt the achieve much so I wouldn't mind getting rid of them if thats what you're suggesting?

  7. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    My h3 tags are just in the sidebar

    No, they're not. They are used for your post titles on your home page (template: index.php), for a start.

  8. jamiemch
    Member
    Posted 2 years ago #

    Ah, I see, just looked into the code and I see

    <div class="clearfloat">
    
    	<h3 class="cat_title"><a href="http://thequeersphere.com/category/comics/" title="View all posts in Comics" rel="category tag">Comics</a>, <a href="http://thequeersphere.com/category/featured/" title="View all posts in Featured" rel="category tag">Featured</a>, <a href="http://thequeersphere.com/category/film/" title="View all posts in Film" rel="category tag">Film</a> &raquo;</h3>

    So the h3 tags aren't actually going around the title of post, they're going around its category?

  9. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    Sorry - you are correct. I simply checked the document outline for your home page. On that template, you need to change <div class="title"></div> to <h2 class="title"></h2>.

  10. jamiemch
    Member
    Posted 2 years ago #

    Excellent!

    That worked a charm - thanks a lot! Hopefully I should see some more organic search from that?

    How do I go about adding h1 tags? I'd like a site description under my logo to be it - I know how to edit the CSS so it wont be HUGE but I'm not sure how to add it.

    Thanks again

    Jamie

  11. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    Try editing header.php and changing <div id="logo" class="left">[...]</div> to <h1 id="logo" class="left">[...]</h1>

Topic Closed

This topic has been closed to new replies.

About this Topic