Page 1 of 1

Adding meta tags to <head>

Posted: Mon Oct 18, 2004 5:03 pm
by stoub
Hi,

I would like to add meta tags to the <head> section of my weblog, is there a way to do that easily, maybe with a plugin?

I tried messing with layout.php but all I get is a page with no stylesheet, and no sidebars :-(

Thanks for your help

Posted: Mon Oct 18, 2004 9:49 pm
by tadpole
The proper place to add them would be serendipity_genpage.inc.php, or you could always make Serendipity embedded.

What meta tag are you trying to add? Would it be useful to add to the main distribution, or is specific to you?

Posted: Mon Oct 18, 2004 9:56 pm
by stoub
Well I would like to add some meta tags like "keywords", "description", "revisit-after", etc, to help having a better ranking in the search engines.

A nice feature would be a plugin or somewhere in the configuration where we could add custom meta tags in the header without changing the php code.

Posted: Tue Oct 19, 2004 12:15 am
by jhermanns
i made a plugin for myself that does that... can you wait for 0.8 or do you want to have it right away?

Posted: Tue Oct 19, 2004 5:17 pm
by stoub
Well it would be very nice of you if you could send it to me, until the next release is available :-)

Thanks :) (I send my private email adresse to you in private message)

Posted: Wed Oct 20, 2004 11:11 am
by garvinhicking
The very easiest way for you to do it (Without a plugin) is to enter Serendipity Configuration and turn on embedded mode.

Then open your templates/layout.php in the template you created (or use templats/default/layout.php if that file does not exist in your directory).

Then also open the file serendipty_genpage.inc.php - there you'll see all the HTML headers. You can copy them (with the PHP-Variables) and insert them in your layout.php file.

Your layout.php needs to contain html, head and body tags, and body+html need to be closed at the bottom of layout.php...

Posted: Sat Oct 23, 2004 5:57 pm
by jhermanns

Posted: Thu Jan 06, 2005 6:37 pm
by E. Bess
Just found this. Downloaded the plugin, and found it to be incredibly handy. Worked like a charm. Thanks so much.

Posted: Fri Jan 07, 2005 3:32 am
by Tom - Daai Tou Laam
I've noticed Dublin Core tags for individual entries. How about Dublin Core for the main page in the head section drawing from latest update, page title, owner, home directory that are found on the 7.1 info page?

Posted: Thu Jan 20, 2005 9:13 pm
by smartcard
I downloaded this http://www.jannis.to/daily/archives/552 ... -head.html

Need help how to apply it to my blog