Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


shorten header bar

Posted on 2014-04-19
Medium Priority
Last Modified: 2014-04-20

In wordpress 2014  I have the horizontal bar called header-main and in css I cant reduce the height.

.header-main{ height:10px }

.header-main{ display:none; } //removes it so I know this is the correct bar
Question by:jagguy
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
LVL 35

Expert Comment

by:Dan Craciun
ID: 40010116
If you want to reduce it, you'll need to reduce/hide the "My blog" header (site-title) and the .search-toggle class.

Even then, you'll get a gap between the bar and the main content, so you'll need to adjust margin-top on site-main.


Author Comment

ID: 40010230
You mean like this?

.site-header { display: none; }

.site-main {margin-top:5px;  }

The area is unstable as you scroll and this former bar area appears again.
LVL 35

Accepted Solution

Dan Craciun earned 2000 total points
ID: 40010242
I don't see it.
.masthead-fixed .site-header {
height: 5px;
.masthead-fixed .site-main {
margin-top: 5px;
.header-main {

Author Comment

ID: 40010248
It might be my local version looking unstable.
Anyway the below code doesnt have any effect if I take it out.
Where is masthead-fixed found on firebug?

.masthead-fixed .site-header {
height: 5px;
LVL 35

Expert Comment

by:Dan Craciun
ID: 40010265
Line 3319 in style.css?ver=3.8.1

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question