PDA

View Full Version : Editing keywords meta tags and title for individual pages ?


spazzer
12-13-2010, 11:27 PM
Hi,
I have created a template and designed my pages for my site from it, I want to be able to edit the meta tags, keywords and title etc for each page for seo, how do I achieve this ? here is my html at the start of my template !

Can you tell me where all this should be to achieve this ?


<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
<!-- TemplateBeginEditable name="doctitle" -->
<title>title will go here</title>
<!-- TemplateEndEditable -->
<meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8" />
<meta name="author" content="Erwin Aligam - styleshout.com" />
<meta name="description" content="Site Description Here" />
<meta name="keywords" content="keywords, here" />
<meta name="robots" content="index, follow, noarchive" />
<meta name="googlebot" content="noarchive" />

<link rel="stylesheet" href="../CSS/main.css" type="text/css" />

<!-- TemplateBeginEditable name="head" -->

<!-- TemplateEndEditable -->


</head>

<body>

DWcourse
12-14-2010, 12:32 AM
The title is automatically editable in a page made from a template (notice the <!-- TemplateBeginEditable name="doctitle" --> comment)

For the other tags, don't put the meta tags you want to be editable in the template. Add them on the individual pages. That way they will appear inside:

<!-- TemplateBeginEditable name="head" -->

<!-- TemplateEndEditable -->

Or you could redo your head in the template like this:

<head>
<!-- TemplateBeginEditable name="doctitle" -->
<title>title will go here</title>
<!-- TemplateEndEditable -->
<meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8" />
<meta name="author" content="Erwin Aligam - styleshout.com" />
<meta name="robots" content="index, follow, noarchive" />
<meta name="googlebot" content="noarchive" />

<link rel="stylesheet" href="../CSS/main.css" type="text/css" />

<!-- TemplateBeginEditable name="head" -->
<meta name="description" content="Site Description Here" />
<meta name="keywords" content="keywords, here" />
<!-- TemplateEndEditable -->
</head>

That way the description and keywords are editable.

spazzer
12-14-2010, 04:46 PM
Thanks,
Thats explained it perfectly and has worked a treat, simple when you know how !

Thanks Again,
Nick C :grin:

DWcourse
12-14-2010, 05:40 PM
I love my brief moments of coherency. :mrgreen:

edbr
12-15-2010, 01:32 AM
me too, I forgot I had Alzheimers yesterday, or was it today?