WordPress.org

Support

Support » How-To and Troubleshooting » Admin CSS being overwritten by Site CSS

Admin CSS being overwritten by Site CSS

  • Since I upgraded to 3.6 my admin is displaying the css properties I have added with a child theme to my site. I have replaced the /wp-admin/css folder with a clean copy from a new download, to no avail.

    I’m thinking this may have to do with the theme (Adventure Journal) somehow taking over into the admin? Anyone have any idea how to get the standard look back to admin?

    Screenshot: Here.

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

    @esmi

    Forum Moderator

    Can you replicate the problem using the unedited parent theme?

    OK. ESMI, you’re right: it doesn’t occur with the parent theme.

    So that means my child theme, which was working fine up until this point, has broken with 3.6. Back to the drawing board? What would cause them to overlap like that?

    esmi

    @esmi

    Forum Moderator

    Difficult to say from here. I’d start by emptying your child theme’s functions.php file and see if that helps.

    Well, it helps if you mean by that it gets rid of my css changes completely. 8|

    Here is what was in the functions.php:

    <?php
    // Remove the Adventure Journal parent style.css and add the child theme's style.css
    
    add_action( 'wp_print_styles' , 'mh_remove_parent_css' , 50 );
    function mh_remove_parent_css() {
            wp_dequeue_style( 'theme' );
            wp_enqueue_style( 'child-theme' , get_bloginfo( 'stylesheet_directory' ) . '/style.css' , '' , '' );
    }

    I am not proficient with PHP. Is this something I can alter or replace to make my child css work properly?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Admin CSS being overwritten by Site CSS’ is closed to new replies.