![]() |
|
||||||
|
|
Thread Tools | Display Modes |
|
|
|
#1
|
|||
|
|||
|
I'm using the genesis_header function to generate my own customer header. It's currently located in the functions.php (see below).
Question; Is there a way to move this function to a seperate file (header.php)? I want to have a better overview of my functions.php because the custom genesis_header contains many code. Code:
add_action( 'genesis_header', 'add_genesis_header' );
function add_genesis_header() {
<code>
}
|
|
#2
|
||||
|
||||
|
dont' use header.php but you could make a file like custom-header.php and use include() to include that file.
__________________
Nick "Fred and/or George Weasley" Croft Designs by Nick the Geek @Nick_theGeek on Twitter Make web design easier, get FireBug for FireFox Want to learn more about Genesis? Check out my Genesis Explained Series |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| damaged Theme functions ( functions.php) | andymac71 | General Discussion | 4 | 05-01-2009 12:06 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