• Resolved zmihailo

    (@zmihailo)


    So I added my custom theme to newly installed WordPress 5.0.3 and it changes background color and font of my wp-admin.

Viewing 5 replies - 1 through 5 (of 5 total)
  • So you have some ‘overlap’ in your CSS file where a class named in the admin area is the same as a class in the new theme you created? Maybe?

    This article or its recommended resources might help you figure this out… https://codex.www.ads-software.com/Creating_Admin_Themes

    My thoughts on the admin panels are, ‘unless I need to worry about someone other than me needing things to be right’… just leave it be if it works.

    If it really annoys you then and you have the time… fix it.

    Thread Starter zmihailo

    (@zmihailo)

    I do. It’s ‘body’. Everything works fine but it’s annoying. I never had this kind of bug.

    It’s because you shouldn’t be loading your styles in the admin, but only on front end. And if it’s editor styles, you need to be very careful what you style.

    Thread Starter zmihailo

    (@zmihailo)

    I didn’t understand you. Default wp-admin theme loads my base.css file. How can this be? In common.css (wp-admin/css)

    body {
    background: #f1f1f1!important;
    color: #444;
    font-family: -apple-system, BlinkMacSystemFont, “Segoe UI”, Roboto, Oxygen-Sans, Ubuntu, Cantarell, “Helvetica Neue”, sans-serif;
    font-size: 13px;
    line-height: 1.4em;
    min-width: 600px;
    }

    I even tried adding !important, but it does not work.

    Thread Starter zmihailo

    (@zmihailo)

    Now, it’s becoming a problem. I really can’t look at my admin panel.

    (box-sizing: border-box)
    https://prnt.sc/morxyp
    https://prnt.sc/mory72

    Here it says: https://prnt.sc/moryy1
    Inherited from html.wp-toolbar. I disabled it and the problem still there.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘My custom theme changes CSS of wp-admin’ is closed to new replies.