Support » Plugin: Theme My Login » Remove Personal Options

  • lblake

    (@lblake)


    Hi,

    I would like the personal options (most specifically the toolbar) section to not display on the profile page. No user logging in will access the toolbar and I think the option will confuse them. Any assistance appreciated.

Viewing 3 replies - 1 through 3 (of 3 total)
  • malisakyle

    (@malisakyle)

    This really is nothing to do with TML.

    To remove the Admin bar for all users except Admin, paste the following into your themes function file.

    add_action('after_setup_theme', 'remove_admin_bar');
    function remove_admin_bar() {
        if (!current_user_can('administrator') && !is_admin()) {
          show_admin_bar(false);
        }
    }

    OR, to remove for all users paste the following into the same into your themes function file.

    show_admin_bar(false);

    Plugin Author Jeff Farthing

    (@jfarthing84)

    Thread Starter lblake

    (@lblake)

    Thanks Jeff. Copied the template to child theme and commented-out Personal Options. Easy fix.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Remove Personal Options’ is closed to new replies.