go41

Where to put mega tags and description in blog’s template?

von Joern am 18. Jan. 2011 | Keine Kommentare

Hi there, my site is here
I was told you need to put meta tags and description in the header.php file
So I did that
Code:

<meta name="keywords" content="their keywords will be written here" />

<meta name="description" content="text">

and as you can see my site was moved down from the top by 10 px.
WHere and how can I add meta tags and a description to my blog’s front page so that this doesn’t happen?
Thanks
Omar

(von: omerkhan01)

Hier noch 5 weitere Ergebnisse dieses Threads:

Re: Where to put mega tags and description in blog’s template? :: Reply by Joern

18. Jan. 2011 (von: Joern)

you should put these lines into the head /head tag which is already there.your header.php should start like this:<!DOCTYPE html PUBLIC "-//W3C//DTD X ...<html xmlns=....<head ....<meta http-equiv="....<title>....PUT YOUR META TAGS HERE (without head /head around as you are in there…

Re: Where to put mega tags and description in blog’s template? :: Reply by omerkhan01

19. Jan. 2011 (von: omerkhan01)

If I replace that part with my meta content and description my site gets pushed down and there is a big black gap between the top margin and my site. How do I make my site's top edge touch the…

Re: Where to put mega tags and description in blog’s template? :: Reply by Joern

19. Jan. 2011 (von: Joern)

okay, this is the first half of arthemia header.phpCode:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>><head profile="http://gmpg.org/xfn/11"><meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" /><title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> &raquo; Blog…

Re: Where to put mega tags and description in blog’s template? :: Reply by omerkhan01

19. Jan. 2011 (von: omerkhan01)

There is no space before DOCTYPE.I did add the keywords in that spot and the space didn't increase thanks. But do you see the black space between the top of the screen and the white container. How do I move…

Re: Where to put mega tags and description in blog’s template? :: Reply by Joern

19. Jan. 2011 (von: Joern)

this position of keywords and description is better now, just one thing:in here:meta name="description" content="...the "Maaximum ..."you have to remove this one " (double quotation mark) as this is the pair of opening and closing marks for the content.this two…

Autor:

Du findest mich auch auf Google+, Twitter und Facebook!

Schreibe einen Kommentar

Pflichtfelder sind mit * markiert.


weitere forum Beiträge: