StudioPress Community Forums

StudioPress Community Forums (http://www.studiopress.com/support/index.php)
-   General Discussion (http://www.studiopress.com/support/forumdisplay.php?f=7)
-   -   Move genesis_header from functions.php to header.php (http://www.studiopress.com/support/showthread.php?t=119563)

Erhnam 10-03-2012 03:29 AM

Move genesis_header from functions.php to header.php
 
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>
}


NicktheGeek 10-03-2012 01:29 PM

dont' use header.php but you could make a file like custom-header.php and use include() to include that file.


All times are GMT -5. The time now is 07:56 AM.

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