Posted by imagex-1 on March 26, 2010 at 11:25am
Im not sure why my header image and the 'front preface sidebar' are only showing on the front page on my site. I need them to show throughout the site
Please help, thanks!
Im not sure why my header image and the 'front preface sidebar' are only showing on the front page on my site. I need them to show throughout the site
Please help, thanks!
Comments
I believe the image only
I believe the image only works when the preface sidebar or mission statement is on. I believe all you need to add is this below(from the page-front.tpl.php) to page.tpl.php
<?php if ($_sidebar || $mission) : ?>
<div id="preface-wrapper" class="clearfix">
<?php if ($preface_sidebar): ?>
<div id="preface-sidebar">
<?php print $preface_sidebar; ?>
</div>
<?php endif; ?>
<?php if ($mission): ?>
<div id="mission">
<?php print $mission; ?>
</div>
<?php endif; ?>
</div><!-- /preface-wrapper -->
<?php endif; ?>
.
See this issue for ideas: http://drupal.org/node/406748
Michelle
Brilliant!
Brilliant!
Thanks alot for the fast response guys, it seems to work now...
Hey Guy, I'm having the same
Hey Guy,
I'm having the same problem. Could you help to elaborate further how to make this work?
tommyent solution - where should i paste the code in page-front.tpl.php & page.tpl.php?
Michelle - I have tried to copy the code from page-front.tpl.php to page.tpl.php but it seem like didn't work on my webpage
Thanks in advance. Cheer!
In your page.tpl.php right
In your page.tpl.php right below
</div><!-- /header-wrapper -->add
<?php if ($preface_sidebar || $mission) : ?><div id="preface-wrapper" class="clearfix" <?php print $banner_image; ?>>
<?php if ($preface_sidebar): ?>
<div id="preface-sidebar">
<?php print $preface_sidebar; ?>
</div>
<?php endif; ?>
<?php if ($mission): ?>
<div id="mission">
<?php print $mission; ?>
</div>
<?php endif; ?>
</div><!-- /preface-wrapper -->
<?php endif; ?>
Seems that you need to clear
Seems that you need to clear the cache so that your new code settings will take effect.
If you are using Admin Menu, go to Site Configuration => Performance and then at the bottom group "Clear Cache Data", click the button "CLEAR CACHED DATA".
If no Admin Menu module installed, you can access admin/settings/performance to go to this page.
Thx Guys
Thx tommyent! It worked now :)
Thx jessmagz!