Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1416177

    andisites
    Participant

    Hi!

    We have found that css sometimes does not work when included in the child theme style sheet without including !important in the code. We have started to include the code in Customizer global css instead, however, we wonder if X-theme is deactivated or updated, will the css in Customizer be lost?

    Is it best practice to include the css in stylesheet including !important (for those cases where changes are not reflected without it) or better to include in the Customizer global css section? Any drawbacks to doing in the Customizer?

    Thank you!

    #1416542

    Joao
    Moderator

    Hi There,

    As the Customizer prints after it gets priority.

    So if your css on style.css is competing with another css and it is not working instead of using !important you can use more specific selector like for example adding the #x-secion-n in front of the css, adding classes, or anything that makes it more specific.

    Hope it helps

    Joao