WordPress.org

Ready to get started?Download WordPress

Forums

Admin Theme Plugin (4 posts)

  1. jdquel
    Member
    Posted 7 years ago #

    I have a new admin theme I am working on right now, and it's almost done accept for a few finishing touches I'm having trouble with. I need to set it so that the style sheet from the plugin also controls the color settings for the login page and the footer image in the admin area. Right now the wordpress footer images is still being loaded in from the default wp-admin images file, even though the plugin stylesheet is telling it to use a different image. The login page is also using the default native wp-admin .css file.

    Any ideas?

  2. dt34d
    Member
    Posted 7 years ago #

    The same problem. Would like to have login and register pades in same style as other site.

    There is at least two plugins that trys to add such functionality. Both are not very attractive.

    There are just one 'shutdown' hook, but it's called after all the html is done, so your CSS link will be after </html>. Not the right way. You could see such how such method is used in 'WP-Custom Logo' plugin ( http://www.wiso.cz/2006/09/21/new-wordpress-plugin-wp-custom-logo-10/ ).

    There are also 'Themed Login and Register' plugin ( http://www.jameskelly.org/wordpress-plugins/custom-login-and-registration-forms-plugin/ ), but it is also wrong approach: it replaces wp-login and wp-admin code completely. So it 'doubles' securiy risk and adds not really necessary code duplication.

    In my instance of WP i just added custom stylesheet link in 'wp-login.php' and 'wp-register.php' pages. Declarations in that stylesheet file overrides standart 'wp-admin.css'. You coul see it in http://OpFor.spb.ru/wp-login.php (it is localised in Russian, but it doesn't matter here).

    I don't like that way (to patch WP core files). It would be mutch better if there will be action hook in WP code.

    Dear developers! Could you add special hook to html-header code of wp-login.php and wh-register.php? It would be the best solution for login|register pages customization problems. The action hook must be in header code, right after all css (wp-admin.css link and the buil-in style addition).

  3. dt34d
    Member
    Posted 7 years ago #

    Just found at least two relevant topics here:
    http://wordpress.org/support/topic/10821
    http://wordpress.org/support/topic/50583
    Sorry for duplication :-( Strange that i didn't found them by my first search.

    But it indicates that problems exists.

    If it helps, i could write a (small) patch and corresponding plugin example.

  4. dt34d
    Member
    Posted 7 years ago #

    Resolved.
    http://trac.wordpress.org/ticket/3123
    AFAIK will be in 2.1 release.

Topic Closed

This topic has been closed to new replies.

About this Topic