Vanuit de bookmarks een paar snelle tips om je wordpress weblog wat meer SEO vriendelijk te maken.
WordPress?
WordPress is gratis weblog-software, die onder de GPL-licentie wordt gepubliceerd. WordPress is ontwikkeld door Matthew Mullenweg, maar het wordt door een flinke groep ontwikkelaars ondersteund. Veel weblogs maken inmiddels gebruik van WordPress.
WordPress maakt gebruik van de PHP-programmeertaal. Alle content wordt opgeslagen in een MySQL-database. Per WordPress-installatie is één weblog te beheren.
Door middel van thema’s (themes) of zelfgemaakte template files is de opmaak van pagina’s aan te passen, zodat er geen gebruik hoeft te worden gemaakt van de standaard vormgeving die WordPress levert. Ook zijn er talloze plugins beschikbaar die allerlei functies aan het weblog toevoegen. Een aantal daarvan zijn bijvoorbeeld spam filters (bijvoorbeeld SpamKarma) of kleine scherm detectie (Mobiele telefoon, Nintendo Wii, Nintendo DS, etc.).
WordPress-gebruikers wordt verzocht onderaan pagina’s te linken naar de website van WordPress.
En dan nu de tips…..
Page Titles.
Go into header.php and replace the <title> whatever is in the title tag </title> with:
<title><?php if (is_home()) {bloginfo('name') ;} else { wp_title(' ');} ?></title>
What this does is for the home page, it uses the blog’s title for the Title tag and for everything else, it will use the title of the blog post or page for the Title tag.
If you really want your blog name in all your posts, use this:
<title><?php wp_title(''); ?><?php if(wp_title('', false)) { ?> | <?php } ?><?php bloginfo(‘name’); ?></title>
Only time I use this is when I think people will be searching for my blog or my whole blog name is all keywords;)
You can also skip this if you decide to use the great NetConcepts Title Tag Plugin
Header Tags
Blog title header
Also in header.php, but could also be in index.php (if it’s in index.php, you will need to change home.php)
Look for the h1 tag, it’s usually between <div id=”header”> </div>.
Replace the <h1>whatever is in the h1 tag </h1> with:
<?php
if(is_single() || is_page() || is_archive()){
?>
<div id="page_header"><a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></div>
<?php
} else
{ ?><h1><a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></h1>
<?php } ?>
When it’s on single, page, or archive, it will use <div id=”page_header”>. Any other time such as the front page, it will use the default h1 tag. You ALWAYS use only one h1 tag and put your most important keywords at the start of the <h1>, but don’t do this religiously though or google will think you’re spamming. Make sure there isn’t any higher numbered headers before the h1 tag.
Now you’ll need to go into your css file, it’s usually (95%) style.css.
Find occurrences of h1 and add on #page_header
Using Beach House’s css file. The first occureance of h1 is
#header h1
font-size: 22px;
text-align: right;
padding-right: 40px;
padding-top: 60px;
}
Your want to add #page_header like this:
#header h1, #header #page_header{
font-size: 22px;
text-align: right;
padding-right: 40px;
padding-top: 60px;
}
Since the above h1 was for the id header, you want to keep page_header in the same id. The next h1 tag in Beach House is
h1, h2, h3 {
font-family: 'Trebuchet MS', 'Lucida Grande', Verdana, Arial, Sans-Serif;
font-weight: bold;
}
With addition, it would be:
h1, h2, h3, #page_header {
font-family: ‘Trebuchet MS’, ‘Lucida Grande’, Verdana, Arial, Sans-Serif;
font-weight: bold;
}
Go and find all h1 tags and add the #page_header <div> id. Some of the h1 tags you won’t need to add the #page_header if they’re under another class like comments/sidebar/etc. You’ll just have to do trial/error to see which one you need to do, but if you’re good at css, it shouldn’t take you long, but if you don’t know anything about css and have problems with a theme
Meer tips HIER
Blogged with Flock
0