Viewing 5 replies - 1 through 5 (of 5 total)
  • Same thing here! For guests it just searches eternally…

    Looks like its working now. What did you do to resolve it? i have same issue

    Thread Starter inmanagex

    (@inmanagex)

    Hi
    In functions.php of the theme I’ve disabled the access to the admin for all kind of users accept the admin

    Neither the main theme nor child theme contain any references to “admin”. *puzzled*

    I added this code to my functions.php. It did not solve the problem of results not showing for visitors/logged out users.

    //Attempt to remove admin bar for anyone not an admin
    
    add_action('init', 'remove_admin_bar');
    
    function remove_admin_bar() {
    if (!current_user_can('administrator') && !is_admin()) {
      show_admin_bar(false);
    }
    }
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘The plugin works only if I logged-In’ is closed to new replies.