Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I am using the Canvas WordPress theme (by WooThemes.com) and successfully made a child-theme to override my CSS. However, I would also like to apply the same child-theme principles to my theme's "includes" folder which contains a variety of .php files. Any idea how I can go about doing this?

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

Depending on how Canvas calls in those files, you might not be able to do this.

If they're using locate template or something similar (get_template_part, for instance), you'll just need to create your own includes folder in the child theme and name the files the same as their couterparts in the parent theme.

If the parent theme uses require or require_once (or include/include_once), there's not going to be an easy way to override those parent theme files.

What are you trying to replace?

share|improve this answer
    
Also, assuming you paid for this theme, why not ask on the Woo Theme's support forum? –  chrisguitarguy Aug 16 '11 at 20:20
    
Thanks for the reply. I am trying to modify the WooTabs widget. I was able to modify the CSS and other theme .php files via a child theme (these files sit in the parent theme's root directory level), but whenever I try to modify anything in the child theme that is below this directory level it doesn't seem to work..I tried creating an includes folder in the child theme and duplicating the respective folder structure but no go. –  Matt Aug 16 '11 at 23:09
    
Parent -> Child inheritance doesn't apply to files below the root level of the theme, assuming the Woo theme operates on the same principles as regular WordPress themes. –  t31os Aug 16 '11 at 23:22
    
@t31os - any workarounds you can think of or am I stuck just modifying the original file? –  Matt Aug 17 '11 at 0:32
    
@Christopher Davis -- I do see this bit of code in index.php regarding get_template_part: <?php get_template_part( 'loop', 'index' ); ?> –  Matt Aug 17 '11 at 1:03
show 3 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.