nice, thanks!
but one other question, sorry š
i dequeue some styles in my child theme because lots of changes.
i do it so:
function faw_dequeue_plugin_styles_frontend() {
wp_dequeue_style('wd-woo-mod-variation-form');
wp_deregister_style('wd-woo-mod-variation-form');
wp_dequeue_style('wd-woo-mod-variation-form-single');
wp_deregister_style('wd-woo-mod-variation-form-single');
}
add_action('wp_print_styles', 'faw_dequeue_plugin_styles_frontend', 99);
later i enqueue my own one:
function faw_scripts() {
wp_enqueue_style('faw-mod-variation-form', get_stylesheet_directory_uri() . '/css/faw-mod-variation-form.css');
}
add_action( 'wp_enqueue_scripts', 'faw_scripts' );
this works well if i check the source code. no style id “wd-woo-mod-variation-form” or “wd-woo-mod-variation-form-single” is found, but my own does.
but if i check in firefox (developer version) the dev tools says the style is still loaded from the original theme file (woo-mod-variation-form.min.css).
also the layout of the site is original and not overwritten.
thanks