![]() |
|
||||||
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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 |
| Thread Tools | |
| Display Modes | |
|
|
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 |
© Copyright 2012 Copyblogger Media LLC · StudioPress™ is a trademark of Copyblogger Media LLC
Privacy Policy | Refund Policy | Terms of Service | Affiliate Program | Contact Us