By chrisblackwell on
How can I keep the mission statement on every page? I have the same code <?php print $mission; ?> but the mission only shows up on the homepage. How can I force this to change?
How can I keep the mission statement on every page? I have the same code <?php print $mission; ?> but the mission only shows up on the homepage. How can I force this to change?
Comments
You can set this in the theme
You can set this in the theme configuration Page
admin/build/themes/settings/{name-of-your-theme}
Options available
Display mission statement only on front page
Display mission statement on all pages
I don't see that option on my
I don't see that option on my theme, the Global settings, nor the Garland theme. Do I have to enable something else?
Some themes support
Some themes only support configuring.
You can add mission to display in template.php
thank you abdu, that was very
thank you abdu, that was very helpful!
mission variable not available on other pages?
Hi. TheLupine & Abdu,
I am having an identical problem. I have tried adding the function
to template.php, but the variable \$mission remains null on any page except home! I have also set the "mission on all pages" option.
can you please let me have more graphic details of what abdu is explaining? I'd really like to nail this one.
many thanks and happy new year etc.
seems to be working now!
seems to be working now!
Just to add my Thanks on the "template.php" code
Just to add my Thanks!
function phptemplate_preprocess_page(&$vars) {
$vars['mission'] = theme_get_setting('mission', false);
}
Clean, simple, and it works.