WordPress.org

Ready to get started?Download WordPress

Forums

Admin CSS being overwritten by Site CSS (6 posts)

  1. anoleimaging
    Member
    Posted 8 months ago #

    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.

  2. esmi
    Theme Diva & Forum Moderator
    Posted 8 months ago #

    Can you replicate the problem using the unedited parent theme?

  3. anoleimaging
    Member
    Posted 8 months ago #

    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?

  4. esmi
    Theme Diva & Forum Moderator
    Posted 8 months ago #

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

  5. anoleimaging
    Member
    Posted 8 months ago #

    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?

  6. paradieserl
    Member
    Posted 8 months ago #

Reply

You must log in to post.

About this Topic