Selina Posted September 22, 2008 Share Posted September 22, 2008 I am relatively new to PHP. The issue I am having is that I am trying to get different titles and meta content for each page in my website. I have created header.inc.php: index.php: <? require("header.inc.php"); ?> Inside the header.inc.php file I placed the meta and title tags then I got the same meta and titles for every page. I have created lots of pages in my website.I prefer that some of them might have same title and meta tags and others have individual ones. Is there a simple way to do this using php code? Could you please give me some samples? Thank you in advance. Any help would be appreciated. Link to comment https://forums.phpfreaks.com/topic/125326-helpdifferent-title-and-meta-tags-for-each-page/ Share on other sites More sharing options...
Brian W Posted September 22, 2008 Share Posted September 22, 2008 drop the ini setting and just go back to simple html headers.... copy and past the duplicates. Or create a .php file with your desired headers in html that will be used often than use include('filelocation/filename.php') Link to comment https://forums.phpfreaks.com/topic/125326-helpdifferent-title-and-meta-tags-for-each-page/#findComment-647805 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.