| View previous topic :: View next topic |
| Author |
Message |
mhele
Joined: 24 May 2004 Posts: 14
|
Posted: Wed May 09, 2012 5:30 am Post subject: site wide meta descriptions and titles |
|
|
Category, link pages, blogs, acticles and new etc allow for the title and meta data to be that of the listing or post etc...
noticed all others pages : Advanced Search, Add Your Link, page.php?page= use site wide meta descriptions and titles..
would something like an if...Else Statement to override the meta desc and title..
or is the only option to have something
_headwithoutmeta1.txt
adding the title and meta data here
_headwithoutmeta2.txt |
|
| Back to top |
|
 |
PHPWebScripts Richard - Admin
Joined: 13 Jan 2003 Posts: 5691
|
Posted: Wed May 09, 2012 6:54 am Post subject: |
|
|
You can add custom metatags also to other pages. All pages are generated by the function "page_from_template". You can for example find the following command in the file search.php:
page_from_template('search.html',$a);
And add these commands before it:
$a[meta_title] = 'Your title tag here';
$a[meta_description] = 'Your meta description here';
$a[meta_keywords] = 'Your meta keywords here';
These commands can be used for any other page. Only make sure to replace the variable $a with the one which is used in the page_from_template command. |
|
| Back to top |
|
 |
|