WordPress.org

Forums

WooCommerce - excelling eCommerce
How to disable css styles of WooCommerce (10 posts)

  1. lucanorillo
    Member
    Posted 1 year 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???
    Thanks

    https://wordpress.org/plugins/woocommerce/

  2. bradmkjr
    Member
    Posted 1 year 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.

    https://wordpress.org/plugins/woocommerce/changelog/

  3. Roy Ho
    Member
    Posted 1 year 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
    Member
    Posted 1 year 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
    Member
    Posted 1 year ago #

    Dangit Roy you stole my answer! :D

  6. lucanorillo
    Member
    Posted 1 year ago #

    My functions.php is this:

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

    <?php
    
    // 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
    Member
    Posted 1 year ago #


  8. Daniel Espinoza
    Member
    Posted 1 year 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
    Member
    Posted 1 year ago #

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

  10. lucanorillo
    Member
    Posted 1 year 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 - excelling eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.