-
AuthorPosts
-
November 9, 2016 at 5:45 pm #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 8 years ago by Rikard. Reason: User request
November 9, 2016 at 5:50 pm #710365Hey!
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,
YigitNovember 9, 2016 at 7:21 pm #710410Hi 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
November 10, 2016 at 11:31 am #710642Hello,
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
November 10, 2016 at 11:53 am #710649Hi!
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,
BasilisNovember 10, 2016 at 12:46 pm #710681Hi,
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
November 11, 2016 at 1:45 am #710954Hi,
Login credentials are not working for me. Can you please check them once again?
Best regards,
YigitNovember 14, 2016 at 10:07 am #711847Hi,
please find it in private content.
Thank you very much for your help
best regards,
Stan
November 16, 2016 at 3:24 am #712707Hi,
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,
IsmaelNovember 16, 2016 at 3:10 pm #712919hi,
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
November 18, 2016 at 4:21 pm #714090Hi,
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,
YigitNovember 18, 2016 at 5:19 pm #714117Thank 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
November 19, 2016 at 7:56 am #714294 -
AuthorPosts
- You must be logged in to reply to this topic.