Has an article about it.
But basically
/* Disable the Admin Bar. */
add_filter( 'show_admin_bar', '__return_false' );
or also
//REMOVE ADMIN BAR
remove_action('init', 'wp_admin_bar_init');
I believe in your functions.php will disable it. Probably a better way than just hiding it thriough css
THe reason you still get the gap with the menu hidden is because WP adds this css as well
html { margin-top: 28px !important; }
* html body { margin-top: 28px !important; }
So a margin is added up top…. you could negate that css in yours, but just disabling the bar is probably better if that’s what you want to do
Related Posts:
- WordPress Admin Bar Overlapping Twitter Bootstrap Navigation [closed]
- How to Add Admin Bar and Admin Menu or Submenu Notification Bubbles?
- Deregister CSS style link ‘open-sans-css’
- Pure CSS to “float” to the right the number of children of an admin_bar child node
- WP Admin Bar transparent on some pages (.screen-reader-shortcut)
- Admin bar default color scheme for nonregistered/nonlogged users
- How can a left and right margin be added to the admin bar without access to “…wp-includes/admin-bar.php”?
- Site layout problems when logged in due to admin bar
- Bootstrap navbar-fixed-top issues [closed]
- force footer on bottom on pages with little content
- Dynamically change color to lighter or darker by percentage CSS
- How would you make two s overlap?
- CSS “margin: 0 auto” not centering
- CSS3 Scale Animation Keyframes
- JavaFX css themes
- Border Position
- Bootstrap align navbar items to the right
- Detect if a browser in a mobile device (iOS/Android phone/tablet) is used
- Using font awesome in codepen
- using media queries with LESS
- How can I apply styles to multiple classes at once?
- How to get multiple images to auto resize and stay centered within a div
- CSS rotation cross browser with jquery.animate()
- How can I center
- into a div?
- How to specify a class added to my gallery
- How to add a “last” class to the last post in loop.php?
- Style new block-editor alignfull class without scrollbars or overflow
- Changing title to lowercase [closed]
- How can I insert HTML attributes with an existing TinyMCE button?
- Hiding certain panels in dashboard
- how to make stylesheet appear in theme editor?
- How to change the order of the comment_form fields with css?
- How to keep theme layout the same when admin gray bar is present?
- customizing recent posts
- Why is WordPress changing my HTML code
- Best way to install Bulma (CSS Framework) with WordPress and Genesis
- Remove sticky behavior from top navigation on twenty fourteen theme?
- Include CSS with PHP without including wp-load?
- Loading different stylesheet on WordPress pages?
- Different css rules for TinyMCE and Gutenberg while using add_editor_style()
- Redoing home page but changes not taking effect
- How to create a custom CSS class for a specific page template?
- Gallery CSS Problem
- Responsive Author Style in BBpress?
- Older isotope portfolio rows shifting downward by 1 pixel on hover
- Shrink Header Image on Scroll
- Inline Style attribute getting stripped off
- What does generate .less file? [closed]
- Can’t Display Table Headers in Responsive table layout
- Edit css for search results page
- How to stop my themes CSS changing the WordPress interface/?
- Load jQuery only on home page
- how to hide submenus for the not active pages
- Why is the CSS horizontal alignment for divs inside div container not displayed in my WP Theme?
- Keeping CSS model open after form submission
- Sidebar button click redirect when user is not logged in instead displays it
- Add class to navigation link of page
- Keep comments but turn off commenting
- How to remove Author and Category from a single portfolio page? [closed]
- why is my paypal button not clicable [closed]
- How can I selectively insert a header for my shop page in woocommerce? [closed]
- Change the search icon in twenty fourteen
- styling isnot working in wordpress theme
- Using True Type Fonts (ttf) [closed]
- Horizontal drop down category with hover effect working
- Child Theme style.css changes aren’t showing. Parent “style-less.css” over rides it, and won’t update
- Broken css on mobile phones only on https
- WordPress Sudden Loss of All CSS And Tons of JQuery Errors
- Trying to hide HENTRY (Author Meta Data) from a Post ID
- Probleme d’emplacement
- Getting and setting CSS variables with JQuery in WordPress backend fails
- Theme: Twentynineteen // How to exclude cookie-control triangle and star svg from being overwridden by theme css “svg { fill: currentColor; }”
- Cannot add a class to metabox
- CSS does not Update
- Need help removing block of white space between footer widgets and footer [closed]
- Why child theme stylesheet takes long time to update?
- Navigation menu disappears when I hover the mouse [closed]
- I want to change change the arrangement of the grid of posts displayed by the theme on the Search page (read the description for better understanding)
- Can’t center post thumbnail with bootstrap [closed]
- Force include a stylesheet from parent theme
- Head section of the wordpress blog
- Site name not showing in browser bar, only url
- Pages in another language
- Using a style sheet for modern browsers and another for older browsers
- How to insert a clickable and fixed background [duplicate]
- Use of CSS classes in editor-blocks.css file
- Parent style messing up with Bootstrap [closed]
- Problems when writing a post
- Will the following code make my css deal with images in the optimum way?
- Interactive maps in wordpress
- How to add input search field with roudned corners?
- WordPress CSS not working properly
- Add Custom CSS Class in Child Theme [closed]
- Min height of page [closed]
- Narrow paragraph block aligned to left of “wrapper”
- Transparent Overlay for Gravity Forms Ajax Spinner
- Remove the main title, but only from the main page
- aos properties ‘invalid’ and not recognised when included as a css class [closed]
- ACF Extended : Disable styles in front [closed]
- How to avoid problems caused by new block-library default CSS rules (wp 6.1.1)