How to disable css styles of WooCommerce (10 posts)

  1. lucanorillo
    Posted 2 years ago #

    Is it possible to disable the css styles of woocommerce in the plugin 2.1.2 version?
    I cant find this option like in the old one...(it was in General>Styles and Scripts)
    Could anybody help me with this???


  2. bradmkjr
    Posted 2 years ago #

    Sorry to say, but it appears to be gone..

    2.1.0 - 10/02/2014
    Feature - Split frontend styles into separate appearance/layout stylesheets and removed the enable/disable option.


  3. Roy Ho
    Posted 2 years ago #

    While the user interface option is gone, you can still do this easily with filters. See http://docs.woothemes.com/document/disable-the-default-stylesheet/

  4. Daniel Espinoza
    Posted 2 years ago #

    Per James Koster's blog, you can add this to your theme's functions.php file and it will deactivate all WooCommerce's styles:

    add_filter( 'woocommerce_enqueue_styles', '__return_false' );

    This filter is used here.

  5. Daniel Espinoza
    Posted 2 years ago #

    Dangit Roy you stole my answer! :D

  6. lucanorillo
    Posted 2 years ago #

    My functions.php is this:

    Could please modify it here for me to copy it? Thanks.

    // ensure EXT is defined
    if ( ! defined('EXT')) {
    	define('EXT', '.php');
    # See: wpgrade-config.php -> include-paths for additional theme specific
    # function and class includes
    // Theme specific settings
    // -----------------------
    // add theme support for post formats
    // child themes note: use the after_setup_theme hook with a callback
    $formats = array('quote', 'video', 'audio', 'gallery');
    add_theme_support('post-formats', $formats);
    add_theme_support( 'woocommerce' );
    // Initialize system core
    // ----------------------
    require_once 'wpgrade-core/bootstrap'.EXT;
    # Please perform any initialization via options in wpgrade-config and
    # calls in wpgrade-core/bootstrap. Required for testing.
     * http://codex.wordpress.org/Content_Width
    if ( ! isset($content_width)) {
    	$content_width = 960;
  7. lucanorillo
    Posted 2 years ago #

  8. Daniel Espinoza
    Posted 2 years ago #

    I'm not comfortable editing your file for you as I'm not going to support anything that breaks. It's one line of code to add.

  9. lucanorillo
    Posted 2 years ago #

    Ok Daniel, but could you say me where to add in this code? Any place is god? Sorry for the inconvenience.

  10. lucanorillo
    Posted 2 years ago #

    Ok ok, dont worry about that. Now I find the solution. Thanks very much and sorry for my poor english

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.