Giter VIP home page Giter VIP logo

seo-ii-exercise's Introduction

WordPress SEO Exercise

This addition to functions.php will add some SEO tags via the wp_head() hook.

Install

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! )

Finish the code

The code sample is not up to the best practise. The informations will

Edit the code according to WordPress best practise:

  1. Read about bloginfo() here.
  2. 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" />

  1. If WordPress doesn't have an appropriate tag, you may use some variables.

SoMe Meta Tags

  • Add advanced meta-tags from Dublin Core or OGP.

WordPress on Meta-tags

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" />

Advanced Meta tags

seo-ii-exercise's People

Contributors

asathoor avatar

Stargazers

Frederikke Duus avatar

Watchers

 avatar

seo-ii-exercise's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.