WordPress.org

Forums

[resolved] hook to customise the register page (5 posts)

  1. rec19
    Member
    Posted 1 year ago #

    I'm trying to css the registration page at mysite.com/wp-signup.php

    So far I have customised the login, lost password and admin pages as follows:

    add_action('login_form', 'custom_admin');
    add_action('admin_head', 'custom_admin');
    function custom_admin() {
       echo '<style type="text/css">
    css code here
    	</style>';
    }

    But I can't do the registration page, iv'e tried using register_form and user_register hooks but they don't work.

    any help will be appreciated, thanks

  2. rec19
    Member
    Posted 1 year ago #

    *I was supposed to put; login_head for the top one.

    Just an update, I still haven't found the hook for the registration page, but I've used wp_print_scripts instead, seems to of done the trick, is this ok?

  3. David Sader
    Member
    Posted 1 year ago #

    Have a look at the code in the wp-signup.php:

    signup_header is there.

    I offer...

    add_action( 'signup_header', 'custom_admin' );

  4. rec19
    Member
    Posted 1 year ago #

    Thanks a lot for this, been looking for this for ages. It didn't have that in the wordpress hook references.

  5. David Sader
    Member
    Posted 1 year ago #

    I like looking for hooks here: http://adambrown.info/p/wp_hooks

Topic Closed

This topic has been closed to new replies.

About this Topic