Title: CSS style overidden
Last modified: January 31, 2022

---

# CSS style overidden

 *  Resolved [jbonlinea](https://wordpress.org/support/users/jbonlinea/)
 * (@jbonlinea)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/css-style-overidden/)
 * Hi there,
 * I’ve added some css class to some templates elements from CustomLayout UI, and
   I’ve defined some css rules for theses class in my child-theme css file.
 * In wp-front-end, the elements have the exepcted class, but the rules are not 
   applied… as if it was overiddden by the plug-in css
 * Actually, the rules are applied, I do find them in the dom inspector, so the 
   element has the class, the class rule is applied to the element, but the rule
   is overidden by the .cl-template class, even if I add !important to my rules !!!
 * I really do not understand what’s going on ?!

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Code Amp](https://wordpress.org/support/users/codeamp/)
 * (@codeamp)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/css-style-overidden/#post-15336160)
 * Hey [@jbonlinea](https://wordpress.org/support/users/jbonlinea/)
 * This is an issue we’re aware of – we need to change some of our css so it can
   be overwritten more easily – planning to address this in an update a few months
   away yet.
 * Do you have a link I could look at so I can provide you with something that would
   work?
 * We probably just need to use the parent classes as part of the selector (to increase
   specificity) and then add your custom class name.
 * Thanks
 *  [Fergumungus](https://wordpress.org/support/users/fergumungus/)
 * (@fergumungus)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/css-style-overidden/#post-15381192)
 * Not sure if my issue is related to this but I’ve noticed that the fonts have 
   changed recently on my Custom Layouts templates…
 * I had written some custom CSS:
    .cl-template strong { font-family:Montserrat !
   important; font-weight:600 !important; } but now it seems to be ignoring the 
   rule and applying the Arial font to my titles.
 * Is there an easy fix to this?
 *  Plugin Author [Code Amp](https://wordpress.org/support/users/codeamp/)
 * (@codeamp)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/css-style-overidden/#post-15440753)
 * Heu [@fergumungus](https://wordpress.org/support/users/fergumungus/) – apologies
   I didn’t see this come through.
 * There will always be a way to override the CSS if I can see what you’re working
   with.
 * Regarding the font, I believe that is now set to `inherit` by default so it works
   better with the fonts loaded in different themes.
 * Do you have a link I could look at?
 * Thanks
 *  Plugin Author [Code Amp](https://wordpress.org/support/users/codeamp/)
 * (@codeamp)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/css-style-overidden/#post-15523834)
 * As I didn’t hear back from you I’m clsoing this ticket for now.
 * Feel free to re-open with further information.
 * Thanks
 *  Thread Starter [jbonlinea](https://wordpress.org/support/users/jbonlinea/)
 * (@jbonlinea)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/css-style-overidden/#post-15525851)
 * Hi
 * it indees seems that now the template use the default font, which is great
    thank’s
   for tackling this issue

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘CSS style overidden’ is closed to new replies.

 * ![](https://ps.w.org/custom-layouts/assets/icon-256x256.png?rev=2475457)
 * [Custom Layouts - Post + Product grids made easy](https://wordpress.org/plugins/custom-layouts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-layouts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-layouts/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-layouts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-layouts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-layouts/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [jbonlinea](https://wordpress.org/support/users/jbonlinea/)
 * Last activity: [4 years, 2 months ago](https://wordpress.org/support/topic/css-style-overidden/#post-15525851)
 * Status: resolved