/ Published in: PHP

This goes in your template.php file
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php /** * Implementation of phptemplate_preprocess_page() * Variables available in page.tpl.php can be overriden from this function. * They are referenced in the array $vars * * This example shows changing a title of a link in the primary nav menu * I suggest print_r() the $vars array and explore its contents * (this snippet belongs in the template.php file and remember to clear your cache */ function phptemplate_preprocess_page(&$vars) { $vars['primary_links']['foobar']['title'] = 'My Member Page'; } ?>
Comments
