hi,
i am using woocommerce which insert a lot of css and js to the html and i would like to use sage power and insert all those css and js to main css/js.
so i remove all woocommerce css and js with:
add_filter( ‘woocommerce_enqueue_styles’, ‘__return_empty_array’ );
and than i added to manifest.json the paths in vendors like:
“vendor”: [
"…/…/plugins/woocommerce/assets/js/prettyPhoto/jquery.prettyPhoto.js",
"…/…/plugins/woocommerce/assets/js/prettyPhoto/jquery.prettyPhoto.init.js"
],
but i had 2 problems:
-
woocommerce call to one of the css files only on mobile width and it doest it with a php if statement. i wonder if i can implement this logic with the manifest?
-
woocommerce alse injected some “cdata” scripts. can i insert them also to the manifest in some way?
thanks in advanced,
daniel