Okay
  Public Ticket #2361057
Child theme CSS
Closed

Comments

  • sophiemarquise started the conversation

    Hello,

    My child theme css is not overriding parent styles... How can I fix this ?

    Thank you

  •  8,991
    Tahir replied

    Hey Again,

    You will have to increase your css selector specificity . Also try adding it to the Custom CSS Box and check . 

    Best 


    ThemeNectar Support Team 

  • sophiemarquise replied

    Hi,

    What did you mean by "You will have to increase your css selector specificity " ? I tried to add filter in my function.php child theme but for overriding parent styles I need to add "!important" to all my declarations, and it's not very good practice... So how can I do this to make my child theme css being accepted ? Thanks !

  •  8,991
    Tahir replied

    Hey Again,

    Yes you will have to use !important as in some cases its not possible to override them without it. 

    Best 


    ThemeNectar Support Team