Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1241105

    I have added this code to the functions.php file

    if ( ! current_user_can(‘manage_options’) ) {
    add_filter( ‘show_admin_bar’, ‘__return_false’ );
    }

    to turn off the top admin tool bar for users that are not admins. But enfold does not seem to want to play ball as non admin users are still seeing the bar. Anyone know why?

    #1241143

    Hey paceventures,

    Can you try to manually replace the single quotes? so it looks like this:

    if ( ! current_user_can( 'manage_options' ) ) {
     add_filter('show_admin_bar', '__return_false');
    }

    Let us know if it helps.

    Best regards,
    Nikko

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.