• Resolved cvc1968

    (@cvc1968)


    I’m playing around with the flexible fields render and preview settings and having issues with overriding the standard admin css. Seems the only way I can display the desired style for common tags in the backend is to use ‘!important’, which I’d rather not do.

    Can the css file specified in the layout render settings be made to load AFTER all the other admin css?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    Loading order is not in cause here. You should prefix your CSS rules with .-preview (which is a class added by ACF Extended in the preview mode). You can also add your own wrapper class within any layout, so you can target them.

    There are some WP Admin rules which has to be overwritten manually tho (whatever the loading order/prefix is). For example the native #poststuff h2, which is targeted by WordPress using the ID.

    Regards.

    Thread Starter cvc1968

    (@cvc1968)

    Yes, it was the #poststuff h2 that was the issue. Thanks.

    Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello!

    Okay, so you should probably target #poststuff .-preview h2 and reset its css.

    Regards.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘CSS needs to load later in admin’ is closed to new replies.