• Resolved jbonlinea

    (@jbonlinea)


    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

    (@codeamp)

    Hey @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

    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

    (@codeamp)

    Heu @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

    (@codeamp)

    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

    (@jbonlinea)

    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.