Msg#: 4454159 posted 2:41 pm on May 16, 2012 (gmt 0)
I recently downloaded the site of a new client that I am wanting to add meta tags to their pages. I soon realized that the designer/developer (who he no longer works with) used includes for the header, so it's not letting me update meta tags per page. I have to edit them in the includes header file which makes the changes global. I am not a developer, so I can't re-do his site. Is there any way that I can add a little bit of code to each individual page that will override it pulling meta tags from that includes header file?
Msg#: 4454159 posted 3:25 pm on May 16, 2012 (gmt 0)
First I have to ask what type of "include" is it? If it is simple a include of another page (page ending in htm, html, php, asp, or inc) and there is something like <!--#include file="pagename.htm" --> in the actual page and not something script driven, you could delete the meta tags from the include then go into each page an manually add them.
Msg#: 4454159 posted 9:39 pm on May 16, 2012 (gmt 0)
you could delete the meta tags from the include then go into each page an manually add them.
If the Include contains the entire <head> element, wouldn't it then be too late to add anything?
I hope this isn't the case, because then the include would have to, er, include a dynamic element to give each page a different title. And then you're in developer territory.
If you're only including the content of the header, you can delete the unwanted <meta> from the include file and put it into each page separately. How many pages are we talking about? I don't think g### would be real thrilled about batches of pages all having the identical meta description, for example. (Was going to say meta keywords, but I think they've simply stopped reading those.)