homepage Welcome to WebmasterWorld Guest from 54.211.230.186
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Search Engines / Sitemaps, Meta Data, and robots.txt
Forum Library, Charter, Moderators: goodroi

Sitemaps, Meta Data, and robots.txt Forum

    
Title and Description Meta Tags
ultrafade



 
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?

 

Marshall

WebmasterWorld Senior Member 10+ Year Member



 
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.

Marshall

lucy24

WebmasterWorld Senior Member lucy24 us a WebmasterWorld Top Contributor of All Time Top Contributors Of The Month



 
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.)

ultrafade



 
Msg#: 4454159 posted 12:08 am on May 17, 2012 (gmt 0)

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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Search Engines / Sitemaps, Meta Data, and robots.txt
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved