Top

Optimization tips for WordPress

by DazzlinDonna 

I posted this over at SEORefugee, but it was suggested that I add it here as well, so here it is.

A lot of people seem to be starting WordPress blogs (as newbies) lately, so I thought I would share a tip here. A newly installed wp blog uses the same title across all pages (ew). It also does not come with a meta description tag (which is ok, but if you want it, then you need to make sure you make them unique). Here’s what ya do…

In your theme’s directory, open header.php.


Replace current title with:



Under that, add:

" />

The first part will put the blog name on the home page (in the title), and use the post title and blog name as the title on the post pages.

The second part will put the blog name and description (found in the Options / General section in the Tagline field) on the home page (for the meta description), and put the post title as the description on the post pages.

Note: Sorry about the bad code formatting. If you can’t grab the code from here, just head on over the SEORefugee post (linked above) to get it.

Comments

9 Responses to “Optimization tips for WordPress”
  1. robert paulson says:

    If you’d be so inclined, you’re a trusted enough source that many people (one I know personally) would love to see you put together a few part series on blogging for n00bs.

    My first blog is about 97% done and ready for primetime – just a couple more minor tweaks.

    My next step would be learning about any special steps one might follow to get as blog noticed (things that might be different from the usual SEO tactics done for a static html site, for example). If you have any wisdom you’d care to share, I’d love to listen.

    Side note – maybe it’s because of the code placed in this post (I think it’s the single, long line of code), but the template for this post is very skewed.

    Thanks a ton!

  2. DazzlinDonna says:

    Yeah, I don’t know how to deal with that long line of code. But that’s definitely what’s making it wonky. I’ll see what I can come up with as a newbie blogging series.

  3. robert paulson says:

    I think there are lots of “Johnny-come-lately’s” who were also slow to embrace the blog as a viable tool for link building, brand awareness, revenue generation, etc. So I would bet much of it is probably old hat to you, but it’s like a fresh new textbook for me, spine crackling as I open it up.

    Thanks again.

  4. kid disco says:

    Hey DD! WordPress newbie here :) Thanks for the info… it works beautifully!

  5. Might also want to add this to prevent duplicate content

    \n”;
    } else {
    echo “\n”;
    }
    ?>

Trackbacks

Check out what others are saying about this post...
  1. [...] Optimization tips for WordPress Kudos to Donna for a couple of excellent suggestions on making wordpress blogs a little friendlier to search engines. [...]

  2. [...] On that note, I incorporated a new line of code into this site that nicely formats the title tag and meta description tag in WordPress.? You can find this optimization tip on Double D’s blog. [...]

  3. [...] Optimization tips for WordPress SEO News – All The SEO ScoopI posted this over at SEORefugee, but it was suggested that I add it here as well, so here it I posted this over at SEORefugee , but it was suggested that I add it here as well, so here it is. [...]



Bottom