Home / Forums / You Theme Support / overriding default css

 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts

  • adamx001
    Participant

    Hi,

    I can’t seem to be able to define new border color for my contact form inputs for example.
    I tried it in the appearance->theme options->custom css, also in my child theme’s style css. Nothing happens. When I inspected the element in my browser, I found that what I put in the appearance->theme options->custom css is put in the HEAD of the HTML page, but it it overwritten by the inline-ed css at the bottom of the BODY.

    Can I turn inlining CSS off? And use the ordinary wp_enqueue_style method.
    If not, how can change any of the CSS?

    The site at hand is dancingmirrors.eu/mohanet

    Thanks,
    Ben

    Hi @adamx001

    Inline CSS will take precedence over CSS on the Custom CSS box or on the child theme.

    You can add “!important;” to the styles you added via Custom CSS box or the child theme CSS, or you can add more specific selectors.

    You also try using the wp_enqueue_style method if you prefer.

    Thanks!

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.