You need to login to send post. No account yet? Create one:
Create account
Lucie Jancovicova
www.noble-drinks.co.uk
On the first page of The Google on choosen keywords in 2 months. Amazing! Our event articles are going automatically on recent if date passed - we never been such accurate before!
Thank you!
Gabriela Mark
www.ycpk.cz
Maintain PHP and HTML website is painful. I never imagine how easy could be do it in CMS by Seo Web Design Aberdeen before. Now can do that my assistant itself. Lovely :-)
All the Best!
Web design and content © www.seo-web-design-aberdeen.co.uk
In example in Zen theme is in your template.php (in your theme folder) section 'Override or insert variables into the page templates'. There are actually two ways to use it:
1. Simple one - only for hidding the title
function YOUR_THEME_NAME_preprocess_page(&$vars) {
$vars['original_title'] = $vars['title'];
if (!empty($vars['node']) && in_array($vars['node']->type, array('CONTENT_TYPE'))) {
$vars['title'] = '';
}
}
2. Universal one
function phptemplate_preprocess(&$vars, $hook) {
switch ($hook){
case 'page':
if ('node' == arg(0)) {
$node_template = array_pop($vars['template_files']);
$vars['template_files'][] = 'page-' . $vars['node']->type;
$vars['template_files'][] = $node_template;
}
break;
}
return $vars;
}