StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have -- and this forum will be removed on July 1st, 2013.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
  #1  
Old 06-15-2009, 07:04 AM
londonva londonva is offline
Registered User
Pro Plus Member
 
Join Date: Jun 2009
Posts: 138
Default How to change header on a page

Hi I'd like to show a different header on a page http://blogdesign4u.com ie Gym page.

I've read the tutorial http://chasesagum.com/different-header- ... -wordpress

Which suggest locate your header.php file and located the <div> for your header. Replace it with this code:

<?php if (is_front_page()) { ?>
<div id=”header”> <!– This is the Header id that you want on your Front Page” –>
<?php } else { ?>
<div id=”<?php echo $post->post_name; ?>”> <!– An alternative header is defined, based on the page title –>
<?php } ?>


I replaced this code but it changed my header to the default text header, so I reverted back to my header.

And then the tutorial recommends this

Now you define each “header” div in your style.css file. The name of the <div> is associated with each static page title. So for example, if you have an About page your div would be #about in your CSS file

I came unstuck here as I don't really know what to change here within the style.css. Hope someone can share an easy way to do this.

Many Thanks :)

Many Thanks in advance
  #2  
Old 06-15-2009, 08:59 AM
Debra's Avatar
Debra Debra is offline
Community Moderator
 
Join Date: Oct 2009
Location: Ontario, Canada
Posts: 13,365
Default Re: How to change header on a page

have a look at this tutorial it gives examples
http://www.ruhanirabin.com/different-he ... wordpress/

essentially what you want to do is copy over all the header info and then just change the image calls or menu calls save as header1.php then change your call to

<?php include(TEMPLATEPATH."/header1.php");?>

and if you are only do this on page that would be the way to go rather than the conditional tag.
__________________
Fat Cat Designs | "Creativity takes courage." Henri Matisse

Make life easier use FireFox and these Customizing tools: Firebug - Web Developer

New to Genesis? See our Guide for Beginners!

Recommended StudioPress Designer
StudioPress on Facebook
  #3  
Old 06-15-2009, 09:44 AM
londonva londonva is offline
Registered User
Pro Plus Member
 
Join Date: Jun 2009
Posts: 138
Default Re: How to change header on a page

Thanks I'm going to try that its just the one page I want to change header.
  #4  
Old 06-17-2009, 10:53 AM
londonva londonva is offline
Registered User
Pro Plus Member
 
Join Date: Jun 2009
Posts: 138
Default Re: How to change header on a page

Quote:
Originally Posted by Debra
have a look at this tutorial it gives examples
http://www.ruhanirabin.com/different-he ... wordpress/

essentially what you want to do is copy over all the header info and then just change the image calls or menu calls save as header1.php then change your call to

<?php include(TEMPLATEPATH."/header1.php");?>

and if you are only do this on page that would be the way to go rather than the conditional tag.

Ok where exactly do I paste the code once I've copied the header info and which part of the header info do I copy, I've been trying to do this but I get errors.

Your help is appreciated :)
  #5  
Old 06-18-2009, 10:33 AM
londonva londonva is offline
Registered User
Pro Plus Member
 
Join Date: Jun 2009
Posts: 138
Default Re: How to change header on a page

Someone Please help and please accept my apologies for asking again.

I knows the basics of customising WP theme, but I really need help on this on, please advise exacly the steps where i should put codes for changing a header on a page, as mentioned before I've read the tutorials for this but I cant really figure out exactly where to place codes etc.

Many Thanks
  #6  
Old 06-18-2009, 08:22 PM
Debra's Avatar
Debra Debra is offline
Community Moderator
 
Join Date: Oct 2009
Location: Ontario, Canada
Posts: 13,365
Default Re: How to change header on a page

copy EVERYTHING from header.php put it in a file save the file as header1.php now change the logo or banner or whatever it is you wanted to be different. Upload.

Choose the template that this header will be on.

for instance create myspecialpage.php and at the top of the page put

<?
/*
Template Name: My Special Page
*/
?>
<?php include(TEMPLATEPATH."/header1.php");?>
<div id="content">

<div id="contentleft">

<div class="postarea">

<?php include(TEMPLATEPATH."/breadcrumb.php");?>

<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

<div class="aheadline">

<h1><?php the_title(); ?></h1>

</div>

<div class="clear"></div>

<?php the_content(__('Read more', 'studiopress'));?><div style="clear:both;"></div><?php edit_post_link('('.__('Edit', 'studiopress').')', '', ''); ?>

<?php endwhile; else: ?>



<?php _e('Sorry, no posts matched your criteria.', 'studiopress'); ?></p><?php endif; ?>

</div>

</div>

<?php include(TEMPLATEPATH."/sidebar.php");?>

</div>

<?php // The main column ends ?>

<?php get_footer(); ?>
__________________
Fat Cat Designs | "Creativity takes courage." Henri Matisse

Make life easier use FireFox and these Customizing tools: Firebug - Web Developer

New to Genesis? See our Guide for Beginners!

Recommended StudioPress Designer
StudioPress on Facebook
  #7  
Old 06-22-2009, 03:36 AM
londonva londonva is offline
Registered User
Pro Plus Member
 
Join Date: Jun 2009
Posts: 138
Default Re: How to change header on a page

Thanks so much for this. :)
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Which header tag do I change for the home page? kellymccausey General Discussion 3 03-15-2010 03:43 PM
Full page header change - have got stuck - help please maison2 General Discussion 4 08-09-2009 01:39 PM
change header page title colors eduki General Discussion 2 07-13-2009 12:55 PM


All times are GMT -5. The time now is 06:55 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.