5 replies
  • WEB DESIGN
  • |
I need to remove the page/post title that WP puts at the top of each post and also on "Pages"
What I want is to supply my own page/post title as an h1 tag. It seems that WP puts them in as an h2 tag or something.

I'm using SEPPressor and it doesn't seem to recognize the page/post title as an h1 tag. Also I want more control over the styling.
#page #remove #title
  • Profile picture of the author LisaLoops
    Easiest way is probably just to remove it from the source.

    In your theme folder dig out single.php and page.php and remove: <h2><?php the_title(); ?></h2>

    Should be golden then!
    {{ DiscussionBoard.errors[3957036].message }}
    • Profile picture of the author ronc0011
      OK I finally worked it out. First I changed the h2 to an h1 tag in index.php file. I'm using SEOPressor and apparently the way WP pulls the content for the post/page title using php variables SEOPressor doesn't see it as having my "keywords" in the h1 tag. Which makes me wonder if Google is going to see it either. So it is necessary to add my own h1 tag. Problem is the page title and the h1 tag say the same thing making it necessary to differentiate the two with styling.
      {{ DiscussionBoard.errors[3957282].message }}
      • Profile picture of the author Joe Mobley
        If possible, and it may not be, I go the CSS route. For instance here is what I use to not display the site description in user.css.

        Code:
        /* Do Not display site description. */
        .blog-description                { display: none; }
        I do this because any changes to the theme code is overwritten with any updates. Hence, you get to hunt the updates down and do them again.

        Just my take.

        Joe Mobley
        Signature

        .

        Follow Me on Twitter: @daVinciJoe
        {{ DiscussionBoard.errors[3957354].message }}
  • Profile picture of the author clau82
    You should go with css as it's less prone to problems as posted above.
    {{ DiscussionBoard.errors[3967501].message }}
  • Profile picture of the author Istvan Horvath
    "Removing" it is not a wise step...

    Simply, it is a fault of the theme designer: most of them follow an antiquated method used by WP itself in earlier versions (Kubrick and Classic themes). Here is how it worked:

    Blog main index/home/frontpage:
    h1 - Blog Title - /h1
    h2 post title /h2
    h2 post title /h2
    h2 post title /h2
    h2 post title /h2
    h2 post title /h2
    h2 post title /h2

    Single post view:
    h1 - Blog Title - /h1
    h2 post title /h2
    comments

    In other words, since in a well-formatted HTML document there should be only one h1 tag, it was always the blog title itself (in the header), and while it was OK for the main page - or any other multipost view page, it didn't work well for the single page view!
    -------------------------------

    However, since version 3.x.x using the Twenty Ten theme, the above 'scheme' has been changed (and all theme designers should study it and learn to do it the right way!)

    Blog main index/home/frontpage:
    h1 - Blog Title - /h1
    h2 post title /h2
    h2 post title /h2
    h2 post title /h2
    h2 post title /h2
    h2 post title /h2
    h2 post title /h2

    BECAUSE this is the proper way to do it: you should have only ONE h1 tag and the rest is h2, h3 etc. - so the main index should be as it was earlier.

    The big change happened in the single post view:
    span - Blog Title - /span
    h1 post title /h1
    comments

    So, while the blog title looks the same visually, actually it is not a heading anymore, so the single post title can be styled as h1 (very good for SEO).

    Blog owners and theme-buyers should urge the theme authors to learn how to code a WP theme properly - you are paying the money: demand quality job...
    Signature

    {{ DiscussionBoard.errors[3967672].message }}

Trending Topics