The site has index.php as the main page. and it calls wrapper.html to index. meta description part of wrapper.html is this. <meta name="description" content="{$description}"> Code (markup): so it takes any thing inside a description tag as the description of the page. The warpper has 10 sites listed in main page: and each has a description tag. so the thing is it takes random tags every time. this is very much hurting the seo of the site. and if i remove {$description} from meta tag: every enlisted site in the directory is having one description and its also bad for. here what i need is a code that can add description to main page without interfering with the descriptions on individual sites pages.
ooooooooooooooooooh its easy my dear add this variable in the main page only $description = 'your desc'; and if it linked by templete engine you must assign it
I split my header and footer up and include them using php like so: In my head.php I have the following code: Then in the content area I have: I hope this helps.