Home › Forums › Weaver Xtreme Theme › How Do I Make Theme Extend Width of Browser?
- This topic has 25 replies, 3 voices, and was last updated 11 years, 1 month ago by
GR8FL.
-
AuthorPosts
-
August 11, 2015 at 20:16 UTC - Views: 5 #18122
GR8FL
ParticipantI don’t want the “box” look anymore. Would like theme to extend to width of browser (regardless of browser size) with maybe 10px of padding on both sides. It needs to scale down according to device and monitor width.
When I have done the steps outlined in section B: http://forum-archive.weavertheme.com/discussion/11124/full-width-designs, I get header (which I set to full width) too high and distorted.
August 11, 2015 at 20:47 UTC - Views: 6 #23867scrambler
ModeratorYou are using the special technique for the header image, based on a header image the width of the site (960px) and a background image to create an extension behind it.This no longer works if your site width is set at 9999px, as the header image will expand to fill that width and therefore become higherIf you still want the effect, you need to constrain the header image to the previous width by adding the rule below in Main Options > Fonts & Custom > Custom CSS Rule box#branding #header-image img {max-width:960px;}August 11, 2015 at 21:16 UTC - Views: 9 #23868GR8FL
ParticipantThat fixes it!
But now the columns on the home page are messed up.
I am using <div class=”content-3-col”>
Each column has a Link, followed by an image, followed by text. The text is creeping into the right side of the image even though I gave it a paragraph break. For example,<div class=”content-3-col”><p><strong><a title=”HLFM” href=”http://www.historiclewesfarmersmarket.com/” target=”_blank”>Farmer’s Market (HLFM)</a></strong></p>
<p><a href=”http://www.historiclewesfarmersmarket.com/” target=”_blank”><img class=”alignleft size-full wp-image-211″ alt=”Historic Lewes Farmers Market” src=”http://xtreme.littledropup.com/wp-content/uploads/HLFM-175.jpg” width=”200″ height=”200″ /></a></p>
<p>May through November, Hattie’s Garden can be found at the <a href=”http://www.historiclewesfarmersmarket.org/” target=”_blank”>Historic Lewes Farmers Market</a> (HLFM) selling vegetables and lovely flower arrangements. The market runs from 8 to 12 through Sep., 9 to 12 in Oct. & Nov.</p></div>If I align the image center, then it is fine, but I want it aligned left.
August 11, 2015 at 21:52 UTC - Views: 8 #23869scrambler
ModeratorThey are not messed up, but the text is set to wrap around the image, so if there is space it uses it 🙂You can force the text to clear the image. If as it looks like you are the one creating the column content, switch your editor to text mode and add a clearing style to the first paragraph of text after the image.<p style=”clear:both;”>text</p>Alternatively, you can remove the float on the image tag so the text does not wrap<img style=”float:none;”…../>August 11, 2015 at 22:31 UTC - Views: 7 #23870GR8FL
ParticipantI fixed that & it looks much better.
But now back to the topic. Not so sure this really looks that great. I just looked at this site on my phone and I find the header is not right. Compare with real site using 960px for theme width: http://hattiesgarden.com/
Real Site:
August 11, 2015 at 22:38 UTC - Views: 6 #23871scrambler
ModeratorYour screen capture dont show, but the problem I see comes from the right and left padding you added on the wrapper.You need to remove that and add padding in the sub containers where you need itAugust 11, 2015 at 22:44 UTC - Views: 6 #23872GR8FL
ParticipantI need to work on this some.
Thanks for the heads up & help.
August 11, 2015 at 22:54 UTC - Views: 10 #23873GR8FL
ParticipantRight now the whole thing is huge and I am not sure whether I need to center the container area or leave it left aligned.
I also do not like the border showing up on the sidebar on the phone since it’s supposed to be left (on a desktop), but in mobile, the sidebar is under the container.
Also the image under the menu bar (located in the Container Top area) is not sizing properly with this new width.
Not sure what is even gained by this. It might make more sense to have the wrapper color same color as container and call it a day.
August 11, 2015 at 23:52 UTC - Views: 8 #23874scrambler
ModeratorYou choose method C which is full content width, this indeed makes the content very large.You can always use the method that only extends the background color, or you can restrict some of the content area with either max-width options or custom CSSThe left border on the sidebar would esily be removed om mobile with custom CSS“Also the image under the menu bar (located in the Container Top area) is not sizing properly with this new width”It looks fine to me, so you would need to elaborateAugust 12, 2015 at 00:37 UTC - Views: 6 #23875GR8FL
ParticipantI have much to experiment with.
May be picking your brain in the very near future.
Thank you, Scrambler. 🙂
BTW, It’s the image in the pre-container that is smaller on the phone view when sized using option C. Desktop makes no difference.
August 13, 2015 at 00:47 UTC - Views: 16 #23876GR8FL
ParticipantI am back!
Been experimenting with changing the theme width without making this so huge.
I have played around a bit with left / right padding for the container (instead of at the wrapper), and whether it should be aligned left or center. Right now I have 20px on left and right side.
Questions:
- How do I get rid of the left border on the sidebar when mobile?
- How do I align menu bar items so it is flush left and right respectively? In other words, I want the Home text on the left side of the menu bar to be aligned left with the border of the container & the Email Icon to be aligned right to the border.
- Now I have this set at 1100 px for theme width. Do I still need to use
#branding #header-image img {max-width:960px;}?? Or do I need to change
my header so it is sized properly for 1100 px? It does seem okay on
desktop and phone as it is right now.
August 13, 2015 at 02:33 UTC - Views: 10 #23877scrambler
Moderator1-.is-mobile #primary-widget-area {border:none;}2-@media screen and (max-width:767px){
ul.wvrx-menu {margin-left:0;}
.menu-primary .wvrx-menu-container li:nth-of-type(1) a {padding-left:0;}
.wvrx-menu-right {margin-right:0;}
.weaver-buttons a:last-of-type img {padding-right:0 !important;}
}3-The width needs to match the size of the image, So if your site is set for 1100px, either the image needs to be 1100px, or if you use the 960px, you need the max-width rule to keep it at 960px like it is nowAugust 13, 2015 at 04:19 UTC - Views: 6 #23878GR8FL
ParticipantThe 2nd answer has no effect. What am I doing wrong? I even put it back to 960 and took out the container padding, but the menu bar items do not align flush left or right. Same thing with footer items.
August 13, 2015 at 04:32 UTC - Views: 7 #23879scrambler
ModeratorSorry, brain freeze. The rule is@media screen and (min-width:768px){
ul.wvrx-menu {margin-left:0;}
.menu-primary .wvrx-menu-container li:nth-of-type(1) a {padding-left:0;}
.wvrx-menu-right {margin-right:0;}
.weaver-buttons a:last-of-type img {padding-right:0 !important;}
}August 13, 2015 at 04:37 UTC - Views: 6 #23880GR8FL
ParticipantI am glad I am not the only one who has brain freezes every now and then 🙂
That worked! And thank you.
Now how can I do the same for the footer?
August 13, 2015 at 04:58 UTC - Views: 12 #23881scrambler
ModeratorChange the previous rules to include the footer ones and modify the button one@media screen and (min-width:768px){
ul.wvrx-menu {margin-left:0;}
.menu-primary .wvrx-menu-container li:nth-of-type(1) a {padding-left:0;}
.wvrx-menu-right {margin-right:0;}
img.wvr-btn-3, img.wvr-btn-6 {padding-right:0 !important;}#footer-widget-area {padding:8px 0;}
#footer-widget-area .widget-4 {padding-right:0px;}
} -
AuthorPosts
- You must be logged in to reply to this topic.

