Welcome to WebmasterWorld Guest from 54.237.251.98

Forum Moderators: goodroi

Message Too Old, No Replies

Title and Description Meta Tags

     
2:41 pm on May 16, 2012 (gmt 0)

New User

joined:May 16, 2012
posts: 5
votes: 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?
3:25 pm on May 16, 2012 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member 10+ Year Member

joined:Sept 4, 2001
posts:2176
votes: 15


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.

Marshall
9:39 pm on May 16, 2012 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member lucy24 is a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month

joined:Apr 9, 2011
posts:13218
votes: 348


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.)
12:08 am on May 17, 2012 (gmt 0)

New User

joined:May 16, 2012
posts: 5
votes: 0


That worked! Thanks to you both. Why didn't I think of that?