Remove WP page title

by 5 replies
7
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.
#website design #page #remove #title
  • 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!
    • [1] reply
    • 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.
      • [1] reply
  • You should go with css as it's less prone to problems as posted above.
  • "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...

Next Topics on Trending Feed

  • 7

    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.