Solved

shorten header bar

Posted on 2014-04-19
5
303 Views
Last Modified: 2014-04-20
Hi,

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
0
Comment
Question by:jagguy
[X]
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
5 Comments
 
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.

HTH,
Dan
0
 

Author Comment

by:jagguy
ID: 40010230
You mean like this?

.search-toggle{display:none;}
.site-header { display: none; }


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

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

Accepted Solution

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

Author Comment

by:jagguy
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;
}
0
 
LVL 35

Expert Comment

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

Featured Post

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

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

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
The purpose of this video is to demonstrate how to set up basic WordPress SEO. This will be demonstrated using a Windows 8 PC. The plugin used will be WordPress SEO by Yoast. Go to your WordPress login page. This will look like the following: myw…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

734 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