@bwooster47 and Theme Author: I am currently using the “Catchkathmandu” theme and trying to apply a Child Theme to it…. after reading everything about child themes I would have probably chosen a different Parent Theme that doesn’t use a separate style sheet for the responsiveness. But that isn’t to say that I don’t like the theme. I’m just trying to figure out how to make the over rides.
I’m still struggling with the responsive.css file taking over any changes that I make in the Child css file.
@bwooster47… you had mentioned that
The WordPress codex for creating child themes is totally wrong! Themes should be allowed to load CSS in functions.php, so only right way to create a child theme requires using the method you described above! (I don’t want to dequeue responsive – I just want my CSS to come after responsive.css so modified the above method a bit to do that.)
I’ve been trying to figure this out…
<?php
/**
* Catch Kathmandu Child functions and definitions
*/
/**
* Enqueue scripts and styles
*/
add_action( 'wp_enqueue_scripts', 'enqueue_child_theme_styles', PHP_INT_MAX);
function enqueue_child_theme_styles() {
wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css' );
wp_enqueue_style( 'child-style', get_stylesheet_uri(), array('parent-style') );
}
?>
<?php
function catchkathmandu_child_scripts() {
wp_enqueue_style( 'catchkathmandu-responsive', get_stylesheet_directory_uri() . 'css/responsive.css' );
wp_enqueue_style( 'catchkathmandu-custom', get_stylesheet_directory_uri() . '/custom.css' );
}
add_action( 'wp_enqueue_scripts', 'catchkathmandu_child_scripts', 20 );
?>
Please Help.. thanks