• Hi All,

    I have some CSS code which works fine if I add it into the customizer – additional css within wordpress.

    When i go to put it into my Themes style.css is has no effect.

    Other codes work fine in both, what would be the cause for a certain code to work in one but not the other?

    Regards,
    Billy

Viewing 2 replies - 1 through 2 (of 2 total)
  • The .css in the customizer loads last.

    If you are adding code to your theme there most likely is something loading after it that is overriding your change.

    You can check your theme .css and make sure you remove the styles you don’t want or that your new .css comes after it in the document.

    Sample:
    H2{color:green;}
    H2{color:blue;}

    Blue will win because it’s loading last.

    If you .css has to do with a plugin, sometimes they load after the style sheet too.

    Does this help?

    Thread Starter thehypetype

    (@thehypetype)

    Thanks Kim, yes managed to get it work by adding ‘!important’ to the line

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