-2

Why file plugins/woocommerce/assets/css/woocommerce.css for my template can not be read?

Please look this image :

enter image description here

4
  • If for some reason ur theme can't read woocommerce.css Then try to manually call that file like <link href="<?php bloginfo('template_directory')?>/../../plugins/woocommerce/assets/css/woocommerce.css" rel="stylesheet">. And if u r using child them then use bloginfo('stylesheet_directory') instead of bloginfo('template_directory') to call woocommerce.css.
    – Rishabh
    Jul 4 '16 at 11:20
  • thank you , but is not loading again :/
    – amirali
    Jul 4 '16 at 12:14
  • Questions specific to WooCommerce are off-topic here, and are better asked about at WooCommerce's own forum.
    – Tim Malone
    Jul 5 '16 at 7:51
  • @Tim Malone May be the question is related to wordpress only! He is asking why my wordpress is not picking a css file. And that file is css file or any other file, And that file is in plugin folder or in theme folder or where ever! does that matter!?
    – Rishabh
    Jul 5 '16 at 8:07
1
function woocommmerce_style() {
   wp_enqueue_style('woocommerce_stylesheet', WP_PLUGIN_URL. '/woocommerce/assets/css/woocommerce.css',false,'1.0',"all");
}
add_action( 'wp_head', 'woocommmerce_style' );

paste the above code in your "functions.php". woocommerce stylesheet will be executed to your site

1
  • Comments are not for extended discussion; this conversation has been moved to chat.
    – fuxia
    Jul 5 '16 at 10:03
0

I had this problem, I added "woocommerce woocommerce-page" classes to body, or parents of woocommerce loop, so it solved the problem,

actually, woocommerce main classes are not add to page.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.