Tagged: x
-
AuthorPosts
-
August 16, 2016 at 9:38 am #1133603
vulpeshdParticipantDear Support,
I want to set my site max width to a specific amount (like 1000 pixels), but I also want to move the header from the left site next to the content.
With images:
1: http://i.imgur.com/drD2rzn.jpg
2: http://i.imgur.com/kwY4zvg.jpgKind regards,
VulpesHDAugust 16, 2016 at 12:25 pm #1133879
RupokMemberHi there,
You can set the container width and max-width from Customize > Layout and Design. If you need further help; provide your URL.
Thanks!
August 16, 2016 at 2:03 pm #1134040
vulpeshdParticipantThis reply has been marked as private.August 16, 2016 at 9:32 pm #1134597
FriechModeratorHi There,
You can add this under Custom > CSS in the Customizer.
@media (min-width: 980px) { body.x-navbar-fixed-left-active { max-width: 1000px; margin: 0 auto; } header .x-navbar-fixed-left {left: 175px;} }Hope it helps, Cheers!
August 17, 2016 at 4:17 pm #1135802
vulpeshdParticipantIts not exactly what I’m looking for.
It leaves a white bar on the left side of the navbar and when I resize the browser it stays there and not resizing properly like the content on the right side.1 http://image.prntscr.com/image/ee0d490987554b75b2147283170d8a35.png
2 http://image.prntscr.com/image/c619bea4834a4982a126cd8200ef38ed.png
3 http://image.prntscr.com/image/997e4d1641cd4144be791b97b82ff627.pngAugust 17, 2016 at 6:49 pm #1135917
JadeModeratorHi there,
Please try to add this code:
@media (min-width: 980px) { body.x-navbar-fixed-left-active { padding-left: 0; } .home .entry-content .cs-content { padding-left: 235px; max-width: 1000px; } }Hope this helps.
August 18, 2016 at 10:02 am #1136917
vulpeshdParticipantIt looks better, but the site is not centered, its sticked to the left side of the browser.
http://prnt.sc/c7bdanAugust 18, 2016 at 11:13 am #1137041
RupokMemberHi there,
let’s update the code a bit :
@media (min-width: 980px) { body.x-navbar-fixed-left-active { padding-left: 0; } .home .entry-content .cs-content { padding-left: 235px; max-width: 1000px; margin: 0 auto; } }Hope this helps.
August 19, 2016 at 3:57 am #1138104
vulpeshdParticipantThis way the navbar stays on the left (sticks to the left side of the browser) and only the content gets resized, like as I update width on the “Layout and Design” page.
August 19, 2016 at 4:15 am #1138118
Rue NelModeratorHello There,
Please update the css code and make use of this code instead:
@media (min-width: 980px){ body.x-navbar-fixed-left-active { margin: 0 auto; max-width: 1000px; } .x-navbar-fixed-left, .x-navbar-fixed-right { left: auto; } }Hope this helps.
August 19, 2016 at 5:52 am #1138172
vulpeshdParticipantThank you very much for the help so far :), but it makes the content go under the navbar.
http://image.prntscr.com/image/80622978c5e04d31aa75d0e8400e85a8.png
August 19, 2016 at 9:16 am #1138326
JoaoModeratorHi There,
Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:
– Link to your site
– WordPress Admin username / passwordDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
Thanks
Joao
August 19, 2016 at 1:08 pm #1138560
vulpeshdParticipantThis reply has been marked as private.August 19, 2016 at 8:45 pm #1139055
Rue NelModeratorHello There,
Thank you for providing the details. Please update the css and use this instead:
@media (min-width: 980px){ body.x-navbar-fixed-left-active { margin: 0 auto; max-width: 1000px; } .x-navbar-fixed-left, .x-navbar-fixed-right { left: auto; } }And then you also need to add the following JS code in the customizer, Appearance > Customize > Custom > Javascript
(function($){ $(window).on('load resize', function(){ var site = $('.site').width(); var win = $(window).width(); var nav = $('.x-navbar').width(); console.log('site: ' + site); console.log('window: ' + win); if ( win > 979 ) { var left = ((win - site) / 2 ) - (nav / 2); $('.x-navbar.x-navbar-fixed-left').css('left', left ); console.log('Left: ' + left); } else { $('.x-navbar.x-navbar-fixed-left').css('left', 0 ); } }); })(jQuery);Hope this helps.
August 20, 2016 at 3:57 pm #1139720
vulpeshdParticipantThank you so much for the help.
I’m very satisfied with the work of the support team 🙂 -
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1133603 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
