• I have my h1 heading tag codes in all of my page titles in header php… I used seo by yoast to enter meta data….However seo analysis says that all pages have no h1 heading tags…Can someone please, help me solve this?

    I am new to wordpress so please, be detailed and explicit….Thank you so much in advance….

    URL is http://www.theboaconsulting.com

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Jimak

    (@jimak)

    I have my h1 heading tag codes in all of my page titles in header php… I used seo by yoast to enter meta data….However seo analysis says that all pages have no h1 heading tags…Can someone please, help me solve this?

    header php codes are: <title>Business Consulting Atlanta</title> – <?php echo htmlentities($title) ?></title> <h1><?php echo htmlentities($title) ?></h1>

    header php: <title>Business Consulting Corporate Finance – <?php echo htmlentities($title) ?></title> <h1><?php echo htmlentities($title) ?></h1>

    header php: <title>Strong Business Financial Consulting Skills- <?php echo htmlentities($title) ?></title> <h1><?php echo htmlentities($title) ?></h1>
    and so on

    page php: <h1><?php the_title(); ?></h1>
    <?php the_content(); ?>
    <?php edit_post_link(‘Edit this entry.’, ‘<p>’, ‘</p>’); ?>

    single php: <h1><?php the_title(); ?></h1><?php edit_post_link(‘Edit’, ‘<span class=”editpost”>’, ‘</span>’); ?>
    theme has no post page

    I am new to wordpress so please, be detailed and explicit….Thank you so much in advance….

    URL is http://www.theboaconsulting.com

    whatever you have edited in header.php has caused a lot of invalid html: http://validator.w3.org/check?uri=http%3A%2F%2Fwww.theboaconsulting.com%2F&charset=%28detect+automatically%29&doctype=Inline&group=0

    for instance, <h1> tags (and most html tags) are not allowed in the <head> section of a site.

    please read up on the difference between the meta title tag <title> (web search: ‘meta title tag’) and the <h1> html tag (http://www.w3schools.com/TAGS/tag_hn.asp) for titles.

    also, the head section should only have one set of <title> and <meta name="description" ... and <meta name="keywords" ...

    if you are using a seo plugin, this should handle this;
    and leave the <h1> for the output in the <body> part of your site.

    Thread Starter Jimak

    (@jimak)

    Thank you so much alchymyth for the post and for finding the errors…. I have meta tags for all of my 10 pages in my header php…

    Since I am using seo by yoast plugin to enter all of my meta titles, descriptions and keywords…Can I just delete all of my H1 tags, meta titles, descriptions and keywords tags from my header php?

    How and where do I add the H1 tags?

    http://www.theboaconsulting.com
    I really appreciate your help….Thank you so much in advance…

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Need help with theme code’ is closed to new replies.