Sorry for the simple question, but, I’m seeing on my (child theme) of Sydney theme written “Version 1.0”, and on Sydney theme “Version 1.33”.
My child theme (of Sydney theme):
Sydney theme:
The question is:
Will the child theme be automatically updated if I updated the main Sydney theme? I’m asking because I wonder why it’s not written “Version 1.33” on my child theme version!
Will the child theme be automatically updated if I updated the main Sydney theme?
Nope, though the parent theme will be updated if there’s a Sydney theme update.
The point of a child theme is that you can safely make changes in your child theme’s CSS and copies of files (also in your child theme directory). The child theme version number doesn’t matter and is for your reference.
Your child theme is version 1.0 but if you make changes you may want to bump it to 1.1 just to remind you that you’ve made changes in your child theme.
]]>How can I override other files under subfolders within the parent theme?
I can’t seem to override files within the theme subfolders even though I’ve added the same subfolder path under the child theme, for example files under inc folder.
I have the default child theme code in functions.php:
function my_theme_enqueue_styles() {
$parent_style = 'parent-style';
wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' );
wp_enqueue_style( 'child-style',
get_stylesheet_directory_uri() . '/style.css',
array( $parent_style ),
wp_get_theme()->get('Version')
);
}
add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
What else is missing?
Thanks
]]>Thank you very much ??
Wish you a nice weekend.
]]>Please create a new topic for your question to keep forum in good order.
Kind Regards, Roman.
]]>