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
Prev Previous Post   Next Post Next
  #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.
 

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
Community themes v child themes non-Studiopress GinnyBee General Discussion 1 05-12-2012 12:20 PM


All times are GMT -5. The time now is 01:15 AM.

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