Solved

shorten header bar

Posted on 2014-04-19
5
296 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
  • 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
The purpose of this video is to demonstrate how to set up an RSS Feed on a WordPress Website. This will be demonstrated using a Windows 8 PC. Feedburner will be used for this demonstration. Go to your WordPress login page. This will look like the…
The purpose of this video is to demonstrate how to set up the permalinks on a WordPress Website. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Go t…

713 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