This addition to functions.php will add some SEO tags via the wp_head() hook.
Improve the SEO of your WordPress:
- Log on your WordPress as administrator either on a localhost or online.
- Activate a childtheme.
- Add the code in
functions.php
to your functions.php ( don't overwrite your functions.php! )
The code sample is not up to the best practise. The informations will
Edit the code according to WordPress best practise:
- Read about bloginfo() here.
- Add bloginfos whereever you can, e.g.
<meta name="application-name" content="<?php bloginfo('name'); ?>" />
So don't use or accept hardcoded stuff like:
<meta name="distributor" content="Multimusen.dk" />
- If WordPress doesn't have an appropriate tag, you may use some variables.
- Add advanced meta-tags from Dublin Core or OGP.
The page lists these common Meta tags:
<meta name="resource-type" content="document" />
<meta http-equiv="content-type" content="text/html; charset=US-ASCII" />
<meta http-equiv="content-language" content="en-us" />
<meta name="author" content="Harriet Smith" />
<meta name="contact" content="[email protected]" />
<meta name="copyright" content="Copyright (c)1997-2004
Harriet Smith. All Rights Reserved." />
<meta name="description" content="Story about my dog
giving birth to puppies." />
<meta name="keywords" content="stories, tales, harriet, smith,
harriet smith, storytelling, day, life, dog, birth, puppies, happy" />