Support » Everything else WordPress » SEO – where to put keywords in code, Title? H1?

  • Resolved cjacob


    Hi everybody! I’ve been reading a lot about SEO, and where I need to put my keywords.

    By what I’ve read, I definitely need to put my keyword phrase in the <title> tag. Now, I found the codes, <title> </title>, but there is a LOT of stuff between them. Where EXACTLY in the middle of those tags, do I put my keywords?

    Also, I’ve read that I should be putting keywords in my H1 and H2 tags. I DID find those tags in my code, but like my first questions, there is a LOT of other stuff between the beginning and ending tags <H1> and </H1>. Where in all that “middle stuff” do I put my keywords in there?

    Thanks for your help!


Viewing 14 replies - 1 through 14 (of 14 total)
  • catacaustic


    very awesome

    What exactly is in your title and H1 tags? Can you give us an exampel of thwer there’s “a LOT of stuff” between them? Normally the title and H1 tags should have only a basic phrase, not a hug amount of text.

    Oopps. Sorry! I forgot to put the link to my page.

    Here’s the code for the <title> part:

    * Print the <title> tag based on what is being viewed.
    global $page, $paged;

    wp_title( ‘|’, true, ‘right’ );

    // Add the blog name.
    bloginfo( ‘name’ );

    // Add the blog description for the home/front page.
    $site_description = get_bloginfo( ‘description’, ‘display’ );
    if ( $site_description && ( is_home() || is_front_page() ) )
    echo ” | $site_description”;

    // Add a page number if necessary:
    if ( $paged >= 2 || $page >= 2 )
    echo ‘ | ‘ . sprintf( __( ‘Page %s’, ‘scrappy’ ), max( $paged, $page ) );

    And here’s all the “stuff” between the H1 tags:

    <h1 class=”site-title”>” title=”<?php echo esc_attr( get_bloginfo( ‘name’, ‘display’ ) ); ?>” rel=”home”><?php bloginfo( ‘name’ ); ?></h1>
    <h2 class=”site-description”><?php bloginfo( ‘description’ ); ?></h2>

    <nav role=”navigation” class=”site-navigation main-navigation”>
    <h1 class=”assistive-text”><?php _e( ‘Menu’, ‘scrappy’ ); ?></h1>




    very awesome

    Ahh… You mean the template files, not the actual page code.

    You don’t need to do anything with the code. Just set up your page title with the correct key words/phrase, and that will take care of the title tag. As for the H1… there’s a lot of conjecture on here about ho wthe H1 tag is used in the default themes, and I agree with those that are saying that it should not be used the way that it is. The H1 tag should be used for individual post/page titles, and not set up the way it is there so it displays your blog title on every page. You can change this in your templates (I do every time). It also lookslike your theme is using H1 tags where it shouldn’t be as well. The assistive-text area shouldn’t be a H1. I’d be hard-pressed to put that as any H tag at all. Whilc you can change this, it will probably mean re-working a lot of your themes files – so make sure that you make any changes in a child theme!

    When you say set up my PAGE TITLE, are you talking about the visual title on my web page, “Tales of An Aspiring Writer / Disneyaholic?” Are you saying that THAT title is the line is holding all my keywords for searches?



    very awesome

    Yes, that is correct.

    Thank you!

    You can just use a plugin instead of dropping your keywords in your code directly. Some of popular ones are All in one, Platinum, and Yoast.

    That being said, keywords, metatags, etc are hardly relevant anymore in today’s SEO world. Although they won’t drive SERP, where they may help is correctly label the search results.

    Thank you for help!

    Can I ask, in your opinion, what IS relevant in today’s SEO world?

    Backlinks? Any suggestions?


    Backlinks are good for SEO but relevant ones have much more power.

    For example a directory website with lots of unrelated links are not so good but in your instance a site about writing linking to your site would be very beneficial for your SEO strategy. Link building is very difficult but very effective. Be prepared to put a lot of time into it and be prepared to write blog posts on other peoples blogs that will in return link to your blog. Thats a great way to build links (and an online network of friends) that is ethical and google friendly.

    Other than that just keep doing what your doing, good content is king.

    For SEO, especially in the early stages, I would write content until my head is dizzy and then I would write some more. Producing unique content regularly trumps any other effort you could possibly do.

    Sure, there are things like building relationships, creating backlinks, and naturally embedding keywords into your content that would help with PR and SERP but none of that is really as effective or important in the beginning as simply getting more content on your site.

    Thank you so much for your advice..I”ll do that!

    Thank you for your time!


    Thanks for your advice, bitwords…great tips!

    thanks for your!

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘SEO – where to put keywords in code, Title? H1?’ is closed to new replies.