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 have my WordPress installation running using a child theme based on a theme I have bought. The original theme has templates files in a template folder /original_theme/template/testimonial.php. I want to override one of the files inside this folder so I copied it to my child theme's folder child_theme/template/testimonial.php. As far as I understand the documentation on child themes this is the recommend way to apply changes to the template files. This works for the header.php file but not for the template file I want to override. Changes are ignored and even an empty file displays the correct content. Is there anything else I have to do?

share|improve this question
1  
from where and how is being called testimonial.php? –  iEmanuele Sep 3 '13 at 15:39
    
This question is impossible to answer without knowing how the template files are being included. –  Chip Bennett Sep 3 '13 at 16:04

1 Answer 1

In many cases, when a theme contains a "template" directory, this directory should be omitted in the child theme. For example, rather than having child_theme/template/testimonial.php, put "testimonial.php directly in the child_theme directory.

share|improve this answer

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.