• Resolved aks9

    (@aks9)


    Hi everyone,

    I have a blank oceanwp theme, and a custom child-theme that I am using with it. In the child-theme I am creating many custom styles in the style.css file.

    However oceanwp is loading an inline stylesheet that gets loaded in the <head> section of the website, (it loads right after a <!-- OceanWP --> comment) and this overrides many of my styles. It seems that most of the settings here come from the Customizer.

    The only solution I’ve found so far is to use !important but this is very cumbersome and bad practice. How can I stop oceanwp from loading these custom styles?

    For example, it is loading #222222 as the default colour for <h2>.
    In the Customizer, I deleted the value for H2 and left it blank, so it shouldn’t be loading any value for <h2>, yet it still does.

    Thanks for any help!

    EDIT: I resolved this, it turns out there is a global-header color setting in the Customizer that was setting the #222222 that I was unaware of

    • This topic was modified 4 years, 1 month ago by aks9.
  • The topic ‘Customizer is overriding my stylesheet’ is closed to new replies.