• Ceciu

    (@ceciu)


    I would like to remove the fixed header I do have on my site .. every time people signup they can see some non sense content like dashboard or Howdy, *username*..

    Anyone knows how to remove this header ?

    Thanks in advance

Viewing 5 replies - 1 through 5 (of 5 total)
  • Pioneer Web Design

    (@swansonphotos)

    Yes, you can disable the ‘admin bar’ (Toolbar – Checkbox at each user) per user.

    Thread Starter Ceciu

    (@ceciu)

    that’s great just done it thanks .. but people can still check it by entering to their profile.. Is there any way how to disable their profile viewing as well ?

    Pioneer Web Design

    (@swansonphotos)

    You can redirect them to the homepage with this added to functions.php of current theme:

    function soi_login_redirect( $redirect_to, $request, $user  ) {
    	return ( is_array( $user->roles ) && in_array( 'administrator', $user->roles ) ) ? admin_url() : site_url();
    } // end soi_login_redirect
    add_filter( 'login_redirect', 'soi_login_redirect', 10, 3 );

    May not work (as is) if theme has included it’s own login actions/hooks.

    Source:
    http://tommcfarlin.com/redirect-non-admin/

    Pioneer Web Design

    (@swansonphotos)

    Note: Above should be done in a Child Theme or this edit will be lost on theme update.

    yardle

    (@yardle)

    I would look into a plugin solution.

    I found this article very helpful: http://wplift.com/controlling-your-clients-wordpress-experience

    Best of luck!

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

The topic ‘How to Remove the wordpress header’ is closed to new replies.