If you want to have custom templates for your node. You can create templates specific to node ID as follows.
Add the below function in your template.php if its not exists.
function yourcurrentthemename_preprocess_node(&$vars, $hook) {
$node = $vars[‘node’];
$vars[‘template_file’] = ‘node-‘. $node->nid;
}
If the function already exists then add the two lines at the beginning of the function.
Then clear the cache.
So if you want to have a custom template for node id 3 (say for example) then create a template with name node-3.tpl.php in your theme directory.
Now you can customise your template as you need.
Keep Rocking…..Enjoy 🙂
Hey this is somewhat of off topic but I was wondering if blogs use WYSIWYG editors or
if you have to manually code with HTML. I’m starting
a blog soon but have no coding know-how so I wanted to get guidance from someone with experience.
Any help would be greatly appreciated!