WordPress automatically display an admin toolbar at the top of the page in frontend for logged in users. This admin bar in WordPress is really an annoyance to me because it slightly disturb my theme design and I never want the toolbar for anything.
I can hide it by using css and we can also do it in wordpress by using wordpress filter name ‘show_admin_bar’. Here’s a snippet of code which will prevent that toolbar from displaying:
For working, add this filter into functions.php