3

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?

1 Answer 1

1

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?

8
  • Also, assuming you paid for this theme, why not ask on the Woo Theme's support forum? Commented Aug 16, 2011 at 20:20
  • 1
    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
    Commented Aug 16, 2011 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
    Commented Aug 16, 2011 at 23:22
  • @t31os - any workarounds you can think of or am I stuck just modifying the original file?
    – Matt
    Commented Aug 17, 2011 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
    Commented Aug 17, 2011 at 1:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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