This forum is specific to WordPress internal workaround and your question is regarding element styling which does not belong here. Please try to use specific sites according to your question.
For your problem, add the following lines in your theme’s stylesheet and it should be fixed.
#masthead #cms-header.header-ontop {
padding-top:15px;
}
#masthead #cms-header.header-sticky {
padding-top:0;
}
Related Posts:
- Create a formatted table-like menu
- How to move parent li to end of child ul
- Override custom menu widget
- When at / ( or “home”) my menu doesn’t get a current-menu-item class
- How to change Twenty Seventeen theme’s navigation bar location?
- WordPress – site with 2 stylesheets and more…
- Add nav menu CSS class to body
- Vertical Sidebar Menu Parent and Child not displaying correctly [closed]
- How to insert custom code into wp_nav_menu structure?
- remove everything from wp_nav_menu
- Editing WordPress Nav Menu Walker
- WordPress Admin Bar Covering & Overlapping Fixed Menu Header [closed]
- Add class active to static menu
- Add CSS to head depending on nav menu walker
- Grey out nav buttons unless is_user_logged_in()
- Add a class at specific element in custom Menu Walker
- wp_nav_menu not working [closed]
- create a 2 row menu in wordpress
- Making nav menu sticky and transparent
- current-menu-item class in CSS
- Static page to one page- menu inactive items highlighted
- CSS_Menu_Walker not showing on mobile view?
- CSS Classes (optional) on menu is not showing
- Switch from hover to click on Twenty Twelve Menu
- How to style a specific nav menu item?
- How Do I Add Images To Main Navigation Menu
- Excluding a media query from specific pages
- How to I know the class or ID of my theme?
- My Temptation theme is showing two of the same menu at the top. How do I remove the one that the theme comes with? Please help! [closed]
- How to change the color of a menu item [closed]
- display menu as table layout
- Highlight parent if item from submenu is active
- WordPress + Bootstrap [closed]
- Menu Arrow for Child Element
- How to buid wordpress menu with auto width sub-menu items in dropdown menu without any items sharing one line [closed]
- Trouble hiding menu on single page
- change hover color of specific menu link [closed]
- How to add css to single navigation text? [closed]
- Navigation menu not visible (contrast issue) on home page
- Full screen nav menu block with avada theme
- How do I change/remove styling (top border) on main menu for active page and hovering (Avada Theme)
- Hide pages from the main menu
- WordPress menu>Custom Link: removing my link formatting and adding %20
- Controlling sub-menu within sub-menu
- How to manipulate attributes of url-less dropdown item in a the custom wordpress menu?
- Using CSS ID’s and Classes with images in a WordPress Horizontal Menu
- Custom menu styling
- Styling issue with custom menus and sub menus
- Determining the “current_page” in WordPress Custom Menus
- New wp menu menu styling
- Child pages don’t become submenus (as in the twenty-ten theme)?
- Secondary Menu Not Functioning as a Sticky Menu
- I’m trying to remove a duplicate menu, which only appears on the homepage?
- Im having trouble centering menu items in footer due to “flexbox”
- Menu items not clickable
- How to add CSS class to and and id in a nav menu with code?
- Change hover to onclick on menu
- Add/remove image from navigation bar
- How to create a mobile menu full screen overlay using Understraps Bootstrap 4 theme
- Additional CSS for the nav menu
- Disable Top Nav Bar on Mobile
- How to get rid of the bottom line in the navigation menu via CSS file?
- Making my main menu a hamburger menu on all platforms
- Adding span to a particular text in an menu item
- Get Sub-Menu Dropdown to Show Over Page Content
- Problem with positioning of the menu in custom WP style
- How can I make menu items into two seperate buttons with different functions?
- Responsive Dropdown Menu
- Mark a page of a queried menu as active
- Vertical Menu items shifting to same line when window size increased [closed]
- Adding two same css class on menu item
- Two questions about CSSing inside the menus
- Always show wordpress submenu on responsive header menu
- Menu item hidden behind others
- jQuery not working when used with wordpress menu
- Making a Custom Menu Sidebar Icon show as Current in css [closed]
- Theme: Twenty Thirteen Mobile Sliding Menu Doesn’t Bump Content Down
- Can’t style custom menu
- individual images as navigation design TwentyTen
- Styling Active Links Within WordPress
- Specifying Class style for Menu
- Bought custom navigation menu from codecanyon, how to change feature.php?
- Menu Underline shows without Hover after adding subitems
- Creating a Horizontal menu
- Any plugin to make a 3 levels menu? [closed]
- How to add or remove borders in navigation menu?
- Problem with float:left – unexpected behavior [closed]
- wp nav menu – highlighting current page not working properly [closed]
- Changing color of specific tab of top menu
- Why is my hamburger menu not shown? [closed]
- Keeping my Sub Menu open when hovering on its list items
- How to centre menu items on horizontal nav bar? (e.g. make margins equal) [closed]
- How to change first letter of active menu item
- Site navigation sits unstyled for a second on page reload [closed]
- Changing when mobile menu is displayed
- how to add permalink/slug to wordpress custom link menu item
- How can I only show one responsive menu on mobile devices?
- Twenty-Twenty-Two Child Theme Mega Menu
- change breakpoint widths for divi theme tablet view
- Main Menu Hover is Always White