• ResolvedModerator Sergey Biryukov

    (@sergeybiryukov)


    WordPress Dev

    There’s an error in wpadmin_classic() function which leads to an invalid URL for the colors-classic stylesheet:

    <link rel='stylesheet' id='colors-classic-css'  href='http://1?ver=3.8' type='text/css' media='all' />

    The solution:

    1. Add this line to the registration section before colors-fresh-classic:
      wp_register_style('colors-classic', plugin_dir_url( __FILE__ ) . 'wp-admin-css/colors-classic.min.css');
    2. Add this line to the enqueueing section before buttons-classic:
      wp_enqueue_style('wp-admin-classic');

    Also, ie-classic stylesheet is never loaded since [822703], even for IE7. This line should be restored in the enqueueing section:

    wp_enqueue_style('ie-classic');

    http://wordpress.org/plugins/wp-admin-classic/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author mch0lic

    (@mch0lic)

    Hi,

    I saw that in source code myself, but if I would do 1st step suggested, then when in post edit page you would see that editor turns blue. I need to do more investigation on this i guess.

    Plugin Author mch0lic

    (@mch0lic)

    Resolved with blue edit form :/ Any suggestions how to apply correct color scheme to post edit are welcome!

    Thanks

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

The topic ‘Wrong URL for color styles’ is closed to new replies.