Title: Virtue Child theme not overriding Parent Theme
Last modified: August 22, 2016

---

# Virtue Child theme not overriding Parent Theme

 *  [TKL2015](https://wordpress.org/support/users/tkl2015/)
 * (@tkl2015)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/child-theme-changes-not-being-recognized/)
 * First time here, and first time WP, so please bear with me. Have set up and activated
   a “Virtue” child theme.
 * The 3 files in my virtue-child directory are:
    1. functions.php <?php add_action(‘
   wp_enqueue_scripts’, ‘enqueue_parent_styles’ ); function enqueue_parent_styles(){
   wp_enqueue_style( ‘parent-style’, get_template_directory_uri().’/style.css’ );}?
   > 2. style.css /* Theme Name: virtue-child Theme URI: Description: Child Author:
   Virtue Author URI: Template: virtue Version: 1.0.0 License: GNU General Public
   License v2 or later License URI: [http://www.gnu.org/licenses/gpl-2.0.html](http://www.gnu.org/licenses/gpl-2.0.html)
   Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-
   ready Text Domain: virtue-child */ [@import](https://wordpress.org/support/users/import/)
   url(“../virtue/style.css”);
 * 3. page-header.php
    <div class=”page-header”> <h1> <?php //echo kadence_title();//?
   > </h1> <?php global $post; if(is_page()) {$bsub = get_post_meta( $post->ID, ‘
   _kad_subtitle’, true ); if($bsub != ”) echo ‘<p class=”subtitle”> ‘.__($bsub).’
   </p>’; } else if(is_category()) { echo ‘<p class=”subtitle”>’.__(category_description()).’
   </p>’;} ?> </div>
 * When I make a change (as in commenting out the headline on page-header.php), 
   the headline still appears. ( If I comment it out in the Parent file, it is doesn’t
   appear, as it shouldn’t.. but I’d like to work on the child theme…)
 * 4. I have refreshed, cleared cache, and even checked in alternate browsers.
 * url: [http://crhmaui.com/wp](http://crhmaui.com/wp)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [stephencottontail](https://wordpress.org/support/users/stephencottontail/)
 * (@stephencottontail)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/child-theme-changes-not-being-recognized/#post-5651706)
 * Does it work if you replicate the folder structure of the parent theme? Try making
   a folder named `templates` in the child theme’s folder and copying `page-header.
   php` from the child theme to the `templates` folder.
 *  Thread Starter [TKL2015](https://wordpress.org/support/users/tkl2015/)
 * (@tkl2015)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/child-theme-changes-not-being-recognized/#post-5651712)
 * Thank you.. that makes total sense that it should.. and I just tried it and still
   doesn’t work., : (
 *  Thread Starter [TKL2015](https://wordpress.org/support/users/tkl2015/)
 * (@tkl2015)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/child-theme-changes-not-being-recognized/#post-5651713)
 * Also, if I try to edit in WP, after placing in a “templates” directory. (and 
   not an external editor), it says “sorry, that file cannot be edited.”
 *  [Ben Ritner – Kadence WP](https://wordpress.org/support/users/britner/)
 * (@britner)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/child-theme-changes-not-being-recognized/#post-5651832)
 * Hey,
    1. with the virtue theme you do not need that function in your child theme.
 * 2. you don’t need this: [@import](https://wordpress.org/support/users/import/)
   url(“../virtue/style.css”);
 * 3. It sounds like you don’t have the correct permissions set on your templates
   folder.
 * [http://codex.wordpress.org/Changing_File_Permissions](http://codex.wordpress.org/Changing_File_Permissions)

Viewing 4 replies - 1 through 4 (of 4 total)

 The topic ‘Virtue Child theme not overriding Parent Theme’ is closed to new replies.

 * 4 replies
 * 3 participants
 * Last reply from: [Ben Ritner – Kadence WP](https://wordpress.org/support/users/britner/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/child-theme-changes-not-being-recognized/#post-5651832)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
