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.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
  #1  
Old 10-03-2012, 03:29 AM
Erhnam Erhnam is offline
Registered User
Genesis Member
 
Join Date: Feb 2012
Posts: 11
Default 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>
}
  #2  
Old 10-03-2012, 01:29 PM
NicktheGeek's Avatar
NicktheGeek NicktheGeek is offline
Forum Manager
 
Join Date: Feb 2010
Posts: 62,650
Default

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

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
damaged Theme functions ( functions.php) andymac71 General Discussion 4 05-01-2009 12:06 PM


All times are GMT -5. The time now is 03:09 PM.

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