Community Forums › Forums › Archived Forums › Design Tips and Tricks › Adding a Widget Area Before Site Header
- This topic has 6 replies, 3 voices, and was last updated 10 years, 11 months ago by
Johann Kratzik.
-
AuthorPosts
-
May 12, 2015 at 10:21 pm #151963
jbendiner
MemberI am developing my new site with the Parallax theme and would like to add a small menu above the header, as in my current site: http://www.technologix.ca/
I followed the tutorial by Brian Gardner
http://briangardner.com/add-widget-area-site-header/but (surprise, surprise) things are not looking as they should.
The URL is: http://logisticsnetworkdesign.com/.At first glance it looks as if the code is adding the widget area below the header (white band) but if you increase the zoom enough the widget eventually 'moves' above the header.
I am quite sure this is a styling issue, but have no clue how to fix it. Any suggestion would be welcome!
Jerry
http://logisticsnetworkdesign.comMay 13, 2015 at 2:42 am #151974Brad Dalton
ParticipantWhat happens if you use the genesis_before hook rather than genesis_before_header?
May 13, 2015 at 2:47 am #151975Johann Kratzik
MemberBy viewing your website I noticed that the navigation is actually inside the header, not above. Is it intended like this?
To remove the white gap, simply delete the margin-top from
.parallax-home .site-innerin style.css
Offering customization work for FREE – Read more
May 13, 2015 at 7:30 am #151992jbendiner
MemberBrad, no change if I use the genesis-before hook ... same result.
Johann, if you take a look at http://www.technologix.ca it will show what I am trying to accomplish. The navigation is inside the header, as I want it to be. What I am trying to do is ADD a small section ABOVE the header where I can place a widget with another menu.
Your suggestion to remove the white gap worked. Thank you. But the problem is still there... If you look at the website now you still cant see the widget area at the top. Yet if you increase the zoom enough it will show up with the text = 'hello there' on the right side.
I am quite sure the issue is in the style.css, but I don't know enough code to resolve it.
May 13, 2015 at 8:13 am #151994Johann Kratzik
MemberUnderstood 😉
The header with logo and navigation has position: fixed; and is overlapping the widget area. So the widget area needs position: fixed; as well.
1) Move the
.site-headerdown in style.css but you need to know the desired height of the widget area.
So for example addtop: 30px;to .site-header2) Add those rules to
.before-header:position: fixed; top: 0; left: 0; width: 100%; height: 30px;But the height must match the "top" for .site-header
Offering customization work for FREE – Read more
May 13, 2015 at 8:56 am #151999jbendiner
MemberThank you Johann.
Your suggestions solved the problem!May 13, 2015 at 9:21 am #152002Johann Kratzik
MemberGood to hear! If you have no further questions, you can mark the thread "resolved" now.
Offering customization work for FREE – Read more
-
AuthorPosts
- The topic ‘Adding a Widget Area Before Site Header’ is closed to new replies.