Hi,
in child theme functions.php
“add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’, 1001 );
function theme_enqueue_styles() {
etheme_child_styles();
}”
so I cannot define version of css.
usually I use :
define(“CHILD_THEME_VERSION”, “1.0.2”);
function child_enqueue_styles()
{
wp_enqueue_style(“benjaminb-theme-css”, get_stylesheet_directory_uri() . “/style.css”, [“parent-theme-css”], CHILD_THEME_VERSION, “all”);
}
add_action(“wp_enqueue_scripts”, “child_enqueue_styles”, 15);
Is there any way we can pass this CHILD_THEME_VERSION into etheme_child_styles();
etheme_child_styles(); does not allow var to be passed ?
thank you