Home › Forums › Other › Can’t Edit Woocommerce Css vis Plug In Or Theme css Files › Reply To: Can’t Edit Woocommerce Css vis Plug In Or Theme css Files
July 22, 2013 at 7:53 pm
#144123
asiek
Participant
I am no professional but I ran into a similar issue with my custom made theme…
So here are a few solutions that worked for my theme:
**1** Did you try changing:
_themename/woocommerce/style.css_
to
_themename/woocommerce/woocommerce.css_?
**2** In your header file is there a <?php wp_head(); ?>
tag anywhere near </head>
?
**3** Have you tried using this code to include your own woocommerce.css file?
function wp_enqueue_woocommerce_style(){
wp_register_style( 'woocommerce', get_template_directory_uri() . '/path/to/woocommerce.css' );
if ( class_exists( 'woocommerce' ) ) {
wp_enqueue_style( 'woocommerce' );
}
}
add_action( 'wp_enqueue_scripts', 'wp_enqueue_woocommerce_style' );