TKL2015
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Virtue Child theme not overriding Parent ThemeAlso, 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.”
Forum: Themes and Templates
In reply to: Virtue Child theme not overriding Parent ThemeThank you.. that makes total sense that it should.. and I just tried it and still doesn’t work., : (
Forum: Themes and Templates
In reply to: [Virtue] Child theme not workingHave created a new thread…thought this was similar enough, but apparently not.
Forum: Themes and Templates
In reply to: [Virtue] Child theme not workingMrgem79, I think if you select “Customize” in the Dashboard Nav, then Select “Navigation”, you can deselect or select where you wish your menu to appear.
Forum: Themes and Templates
In reply to: [Virtue] Child theme not workingChild-theme page has title commented out, but still shows up. When I comment it out in the Parent theme, it is removed, so it seems the child theme is not being read for some reason..?
Forum: Themes and Templates
In reply to: [Virtue] Child theme not workingAnd, yes, I have the Virtue Child theme activated.
Forum: Themes and Templates
In reply to: [Virtue] Child theme not workingI have the same issue. I created a child theme, and no matter what I do to the child page (i.e., “page-header.php” — simply commenting out the H1 header, for example, doesn’t work. HELP.
In the child directory “virtue-child” I have 3 files.
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’ );
}
?>style.css
/*
Theme Name: Virtue Child
Theme URI: http://crhmaui.com/virtue-child/
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
Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
Text Domain: virtue-child
*/and 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>The headline still appears…