File in Child Theme is not overriding Parent Theme file?
-
I have a custom theme that uses WooCommerce. I’m trying to override some WooCommerce functionality/styling in the Child theme but the file doesn’t appear to be working.
I have the file in this directory: /childtheme/woocommerce/theme-woo.php
I have this in my child theme functions.php file:
/* This file is for overrides on the woocommerce templates */ if (class_exists('Woocommerce')) { include_once( TEMPLATEPATH . '/woocommerce/theme-woo.php' ); }
The stuff I have changed in the theme-woo.php file is not showing up at all on the site. Am I doing something wrong? I have added another WooCommerce file (content-single-product.php) in the /childtheme/woocommerce directory without having to link to it in the functions.php file, and it works just fine. Am I missing something?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘File in Child Theme is not overriding Parent Theme file?’ is closed to new replies.