This topic has 4 replies, 3 voices, and was last updated 6 years by Radu.

  • Author
  • #191503
     rensoconese
    Participant

    the button to hide an  show the admin bar dont work.

    and the admin bar is still hidden. i need to show it for admins

    #191620
     Laura
    Moderator

    Hello, can you share admin access so i can test it?

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #191631
     rensoconese
    Participant
    This reply has been set as private.
    #191784
     Laura
    Moderator

    Hello, will assign the ticket to a higher support level who can help and advise you in your query.
    Thanks! ?

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #191871
     Radu
    Moderator

    Hi,

    If that not work you can try with this code

    COPY CODE
    
    add_action('init', 'add_admin_bar_for_admins');
    
    function add_admin_bar_for_admins() {
        if (current_user_can('Administrator') OR current_user_can('Editor') ) {
            show_admin_bar(true);
        }else {
            show_admin_bar(false);
        }
    }
    

    NOTE : Child theme needs to be installed and activated
    The function will have to be added in wp-content/themes/kleo-child/functions.php

    Cheers
    R

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 5 posts - 1 through 5 (of 5 total)

The forum ‘Bugs & Issues’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?