Changing the h1 tag for each blog post

by zeke
4 replies
  • SEO
  • |
I'd like my blog post title to also be my h1 tag for each post.

Is there a plugin that does that or an easy change to make to wordpress so it works?
#blog #changing #post #tag
  • Profile picture of the author GeorgR.
    depends on the theme. Some themes keep blog title in H1 (which is dumb)...and good themes keep blog title in H2 but post titles in h1. Otherwise all-in-one seo or platinum seo is all you need.

    If your blog keeps the blog title in h1..you need to mod your theme...or get a better theme (like thesis) where the programmer(s) of the theme knows about SEO. I am also constantly shaking my head since 85% of free themes out there have the blog title in H1 which is utter nonsense.
    Signature
    *** Affiliate Site Quick --> The Fastest & Easiest Way to Make Affiliate Sites!<--
    -> VISIT www.1UP-SEO.com *** <- Internet Marketing, SEO Tips, Reviews & More!! ***
    *** HIGH QUALITY CONTENT CREATION +++ Manual Article Spinning (Thread Here) ***
    Content Creation, Blogging, Articles, Converting Sales Copy, Reviews, Ebooks, Rewrites
    {{ DiscussionBoard.errors[1573820].message }}
  • Profile picture of the author edgray
    Most templates should have this feature already.

    To change, you need to edit the Appearance > editor and change "singlepost.php"

    You should have something like this:

    PHP Code:
    <?php get_header(); ?>
    <div id="content-body">
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <div <?php if (function_exists("post_class")) post_class(); else print 'class="post"'?> id="post-<?php the_ID(); ?>">
    <?php lw_show_sidebox(); ?>

    <h1><a title="<?php the_title(); ?>" href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h1>

    <?php edit_post_link(__('Edit this post','manzanamona'), '<span class="edit_content">''</span>'); ?>
    The part on it's own line is where you need to add the H1 tags.

    Each template might be slightly different, but all of the ones I've ever used have the H1 already in use.
    {{ DiscussionBoard.errors[1573829].message }}
    • Profile picture of the author letsdoit
      Originally Posted by edgray View Post

      Most templates should have this feature already.

      To change, you need to edit the Appearance > editor and change "singlepost.php"

      You should have something like this:

      PHP Code:
      <?php get_header(); ?>
      <div id="content-body">
      <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
      <div <?php if (function_exists("post_class")) post_class(); else print 'class="post"'?> id="post-<?php the_ID(); ?>">
      <?php lw_show_sidebox(); ?>

      <h1><a title="<?php the_title(); ?>" href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h1>

      <?php edit_post_link(__('Edit this post','manzanamona'), '<span class="edit_content">''</span>'); ?>
      The part on it's own line is where you need to add the H1 tags.

      Each template might be slightly different, but all of the ones I've ever used have the H1 already in use.
      So we just need to add that code to the singlepost.php and it will then put our post title in the H1?
      {{ DiscussionBoard.errors[1574353].message }}
    • Profile picture of the author zeke
      many thanks Ed, exactly what I was looking for



      Originally Posted by edgray View Post

      Most templates should have this feature already.

      To change, you need to edit the Appearance > editor and change "singlepost.php"

      You should have something like this:

      PHP Code:
      <?php get_header(); ?>
      <div id="content-body">
      <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
      <div <?php if (function_exists("post_class")) post_class(); else print 'class="post"'?> id="post-<?php the_ID(); ?>">
      <?php lw_show_sidebox(); ?>

      <h1><a title="<?php the_title(); ?>" href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h1>

      <?php edit_post_link(__('Edit this post','manzanamona'), '<span class="edit_content">''</span>'); ?>
      The part on it's own line is where you need to add the H1 tags.

      Each template might be slightly different, but all of the ones I've ever used have the H1 already in use.
      {{ DiscussionBoard.errors[1574841].message }}

Trending Topics