• Resolved l r

    (@lainyrache)


    Hello
    Is it possible to remove the inline styles from Storefront? I am using my own child theme, and I would rather control the styling in the my css than using customizer.

    Thanks for any help!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hey,

    You can filter storefront_customizer_enabled to disable all the Customizer components in Storefront.

    Thread Starter l r

    (@lainyrache)

    Thanks for your help jameskoster…
    could you possibly give me any further pointers as to how to do this?
    I’ve tried but just can’t figure out how to do this…

    You can use the code below to disable customizer on Storefront. Just put it in your child theme’s functions.php.

    add_filter( 'storefront_customizer_enabled', 'woa_storefront_disable_customizer' );
    function woa_storefront_disable_customizer() {
        return false;
    }

    @wooassist: FYI instead of creating a new function you can just use __return_false ??

    Thread Starter l r

    (@lainyrache)

    Thanks so much for your help guys, that does the job brilliantly!

    thanks @jameskoster. I already knew that though, I just thought that it would be better to set out an example like this for others to understand how filters work.

    @lainyrache we’re glad we could be of help to you =)

    I would like to delete the colors(styles) at the end of the website, how do I do that?

    Check:

    https://valrium27.twentyseven.axc.nl/

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