View Single Post
  #1  
Old 10-25-2012, 06:30 PM
jjaycallejas jjaycallejas is offline
Registered User
Pro Plus Member
 
Join Date: Nov 2011
Posts: 154
Default .php includes with child themes

Hello,

I was looking into what's everyones thoughts on designing themes with php includes as opposed to throwing everything into functions.php.

e.g.

PHP Code:

remove_action
('genesis_header''genesis_do_header');
add_action('genesis_header','custom_header');

function 
custom_header() {
include 
'/custom-header.php';

Does anyone see anything wrong with this practice?

I was thinking about this when creating custom metaboxes and can see how the functions.php can get out of hand with various custom post types.