Community Forums › Forums › Design Tips and Tricks › Header Widget Within Metro
Tagged: header, header widget, Metro, widget
This topic contains 8 replies, has 3 voices, and was last updated by bassjamm 2 months, 3 weeks ago.
-
AuthorPosts
-
March 1, 2013 at 6:46 am #23481
Hi all…
I’m trying to widen the header widget area within my Metro child theme.
Here’s my site – http://injuryfree.me
My attempts within the css file have just widened all the widget areas/sidebars which obviously isn’t cool.
How do I single out the Header Widget area and customise the width and all that?
Thanks in advance
Jamie
March 1, 2013 at 7:12 am #23485You can check the below thread, I have given the css to increase the width of widget there…you can change the values accordingly
http://www.studiopress.com/forums/topic/468px-banner-in-metro-theme-header-area/
Meet me at: Make Web World
March 1, 2013 at 7:22 am #23488I was going to say the same as @sanjeev in terms of what you need to do.
Simply put, as the widget is within header div you need to be more specific when targeting the widget itself. Therefore you can target the header (#header) itself, then the widget (.widget-area) within like so (#header .widget-area). You’d also need to reduce the title width as that would force things down.
I played about with the Chrome Inspector on your site and these values should work for you:
#title-area { width:29.62962962963%; /* 100(320/1080) */ }
#header .widget-area { width:56.944444444444%; /* 100(615/1080) */ }
March 1, 2013 at 7:55 am #23494Thanks for that guys.
So do I need to simply add that code to the bottom of my css file, or do I need to replace the current styling with the style mentioned here?
March 1, 2013 at 8:06 am #23496Woah…I’ve redone all of that following the instructions and it’s totally screwed the layout up!
Any ideas?
March 1, 2013 at 8:24 am #23501Found it.
Try this. Open up your style.css file:
1) Go to Line 451, and change:
.footer-widgets-1,
.footer-widgets-2,
.footer-widgets-3,
.sidebar,
.subnav-left,
width: 31.111111111%; /* 336px / 1080px */
}to
.footer-widgets-1,
.footer-widgets-2,
.footer-widgets-3,
.sidebar,
.subnav-left {
width: 31.111111111%; /* 336px / 1080px */
}( notice how .subnav-left has the symbol { instead of using a comma )
2) Right at the bottom of the file, remove this bit of code:
#header .widget-area { float: right; padding: 14px 0 0; width: 468px;
Things should look better then (doing these 2 things fixes the layout issue on my mac).
March 1, 2013 at 8:43 am #23508Awesome!
DONE!
Now…how do I stop the site header/name getting cut on the right hand side? You’ll see it’s kind of chopped off a bit.
Really appreciate the help dude!
March 1, 2013 at 8:55 am #23514Right at the bottom of the style.css file change:
#title-area {
float: left;
overflow: hidden;
padding: 18px 0 0 20px;
width: 298px;
}
to:
#title-area {
float: left;
overflow: hidden;
padding: 18px 0 0 20px;
}
March 1, 2013 at 10:40 am #23539Thanks for that…I was just figuring out it was that bit as it happens. Much appreciated!
-
AuthorPosts
You must be logged in to reply to this topic.