Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter AlexS

    (@alexarium)

    By the way, I am using latest WP, latest Pinnacle and I can tell from the code that there are some bits that don’t belong exclusively to WooCommerce.

    I have tried both external CSS and using the Custom CSS option from the Theme Settings, but the code still shows.

    Hey,
    That little bit of css is to set the colors for your primary color options in the theme options > basic styling.
    There are some woocommerce specific classes referenced to make sure the colors all match through the site. Referencing some woocommerce classes (along with all your other styling classes) is not going to hurt your site speed and certainly not something I suggest you worry about removing. It’s only css, not javascript or anything that has to “run” on our site.
    But if you would like to do that I can walk you through creating a child theme: https://www.kadencethemes.com/child-themes/

    and using some custom code in your child theme to unhook the theme options basic styling. (which will mean you will need to control that with your own custom css).

    I strongly suggest against this for update reasons but let me know if you need more guidance and I would be happy to give you the unhook function for the theme options css output.

    Kadence Themes

    Thread Starter AlexS

    (@alexarium)

    Thanks for that.

    I’m already running a child theme.
    If I add the custom code that removes all woocommerce functions, will anything else be affected?

    Also, I understand you advising against it, but are your concerns only in regards to woo or do they include the general functionality of the site after an update?

    Hey,
    I suggest not doing it not because of woocommerce but because you will be shutting off theme options that you would then have to custom code with css. And your closing yourself off to theme options that could come in the future all of which would have nothing to do with woocomerce.
    I also suggest not doing it because it will have no effect on your site. Most of that css if your buttons, links etc. Its only referencing some specific woocommerce classes along with the others. There isn’t any css call there that you don’t need.

    Kadence Themes

    Thread Starter AlexS

    (@alexarium)

    Thank you, that’s very helpful.

    I will take your suggestion and I will leave everything as is.

    Thanks a lot.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Remove CSS for woocommerce’ is closed to new replies.