Web Hosting Talk







View Full Version : why are my meta tags not working in dreamweaver?


gg2327
09-04-2007, 10:45 AM
i have included keywords and description of my home page as instructed by book by clicking on the objects box> head> which brings me to the description and keywords icon to clik on and type my keywords in. after i've done all that it doesn't show up in my code which is meant to show up?? any help most appreciated?

GPearce
09-04-2007, 12:02 PM
What type of script are you using?
The fastest way to resolve is by using on online meta generator, then copy/pasting into your code.

gg2327
09-04-2007, 12:11 PM
What type of script are you using?
The fastest way to resolve is by using on online meta generator, then copy/pasting into your code.

thanks for reply. someone on another forum has just helped me out. it wasn't working cos that part of my page is uneditable so it would only worked in the template itself

bear
09-04-2007, 12:23 PM
thanks for reply. someone on another forum has just helped me out. it wasn't working cos that part of my page is uneditable so it would only worked in the template itself

If you want different META info on various pages and have a relatively recent version of DW, you can put that into the empty editable region in your pages. Look for this:
<!-- InstanceBeginEditable name="head" -->xx-put your stuff here-xx<!-- InstanceEndEditable -->
</head>

gg2327
09-04-2007, 12:40 PM
thanks for the tip bear. i have dreamwever 3 so don't now if that's new enough but i will try it anywy

bear
09-04-2007, 12:50 PM
I think that may be too old, unfortunately. I believe that began with the MX version (6/7).
You could probably manually paste it into the section just below this (from an older version I have here):
<!-- #BeginEditable "doctitle" -->
From that to the "EndEditable" tag just below the page title should be left untouched by the template system, so you shouldn't see a warning.

gg2327
09-05-2007, 04:55 AM
hi bear is this what you mean. have i put my description and keywords tag in the right place?


<html><!-- #BeginTemplate "/Templates/index.dwt" -->
<head>
<!-- #BeginEditable "doctitle" -->
<meta name="description" content="A miniature painting site with a painting service, articles and tutorials as well as paint conversion tables for Citadel, Reaper, Vallejo, Coat D'arms and Derivan.">
<meta name="keywords" content="miniature painting, painting service, acrylic paints, kolinsky sables, 15mm, 20,, 28mm, 40mm, 54mm">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Home</title>
<!-- #EndEditable -->

bear
09-05-2007, 04:57 AM
hi bear is this what you mean. have i put my description and keywords tag in the right place?


Yes. That should be left alone when updating the site after a template edit. Test first, of course, before editing a lot of pages.

gg2327
09-05-2007, 05:19 AM
will test before doing lots of pages.thanks again for help bear!:) :) :)