Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #710359

    hello,

    do you know how can i hide the black top wordpress bar for all users except the admin ?

    I have tried some plugins but didn’t work

    thank you

    Stan

    • This topic was modified 7 years, 11 months ago by Rikard. Reason: User request
    #710365

    Hey!

    Please add following code to Functions.php file in Appearance > Editor

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

    Regards,
    Yigit

    #710410

    Hi Yigit,

    i have tried but it doesn’t work.
    What is also very strange is that the wp tool bar still appear even when i choose to not display it in particular user acount ( see screen shot in private content).

    2 – i also have a remaining problem with the display of card icon in “floating mode on the side” : it is cut above ( see screenshot 2 ).

    I have created for you an admin acess( see in private data).

    Thank you very much in advance for your help

    best regards,

    Stan

    #710642

    Hello,

    for the point 1 concerning the remaining display of the wp tool bar, i have found the solution : it was because of 1 extension that i have disabled and it is now ok.

    So just remain now the problem 2 with the display of the card icon in “floating mode on the side” that is cut above ( see screenshot 2 ).

    thank you in adavance for your help !

    Stan

    #710649

    Hi!

    It seems you have applied some Custom CSS to it.
    Can you please review them, so we can be sure that those are not making that issue?

    Thanks a lot

    Best regards,
    Basilis

    #710681

    Hi,

    i have try to erase all quick CSS and do hard refresh but the problem with the position of the card icon is still the same, so it is sure it is not making that issue.

    I think it comes with the enfold header option : menu above logo ( which is the design that my customer want ).

    With header option ” menu below logo” the display of the icon card is correct.

    Thank you very much for your help

    best regards

    stan

    #710954

    Hi,

    Login credentials are not working for me. Can you please check them once again?

    Best regards,
    Yigit

    #711847

    Hi,

    please find it in private content.

    Thank you very much for your help

    best regards,

    Stan

    #712707

    Hi,

    We added the following css code in the Quick CSS field.

    .html_bottom_nav_header .cart_dropdown {
        margin: -25px 0 0 0;
    }
    
    .html_visible_cart .cart_dropdown {
        right: 5px;
    }

    Best regards,
    Ismael

    #712919

    hi,

    thank you very much, it works fine like this and look great on computer and tablet.

    The only problem that remains is the display on smartphone in vertical and horizontal mode ( when responsive goes with the dropdown menu )
    ( see screenshot in private data)

    Can not fix this with quick css without changing the rest ?
    Otherwise can we just delete it in this mode of display and I will simply add the shopping card page in the menu enfold.

    Thank you again

    best regards

    Stan

    #714090

    Hi,

    Please try adding this code to the Quick CSS section under Enfold > General Styling or to your child themes style.css file:

    @media only screen and (max-width: 767px) {
    ul.cart_dropdown {
        display: none!important;
    }}
    

    Best regards,
    Yigit

    #714117

    Thank you so much Yigit, it works fine like that ( as said for smartphone display i have juste included the shopping card in the enfold dropdown menu ).

    ps : can you change the main name of our topic ( which was originally “hide the wordpress top bar for all users except admin ?” ) with “problem about display of shopping card icon”, so it can be more usefull for other enfold users.

    have a nice we ;-)

    Stan

    #714294

    Hi Stan,

    I changed the topic, thanks for thinking about other users :-)

    Please let us know if you should need any further help on the topic.

    Best regards,
    Rikard

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