BuddyBoss Home – Web › Support Forums › Themes › Boss. theme › Nav bar width
- This topic has 16 replies, 4 contibutors, and was last updated 9 years, 3 months ago by Alyssa.
Question
March 31, 2015 at 11:36 am #38303@joymoletaHello, I am using this for my page to create a boxed in layout:
body{margin: 0 auto;
max-width: 1140px;}What do I use for the nav bar to be of the same width? It’s being stretched across the screen. Thank you.
Answers
April 2, 2015 at 9:25 am #38415@alyssa-buddyboss
AlyssaParticipant@joymolenta try this instead:
body,header{margin: 0 auto; max-width: 1140px;}
April 17, 2015 at 4:39 am #39039@style960@tjchester This is really cool. What would we need to do to apply a background image afterwards? Does this need a new div adding to header.php? I’d have a look myself but I’m at work right now. Thanks.
April 17, 2015 at 4:09 pm #39065@alyssa-buddyboss
AlyssaParticipant@style960 perhaps
html{background:[code here];}
NOT TESTEDI’m not even sure if you can apply background image to html tag. I don’t see why not.
April 17, 2015 at 5:00 pm #39077@style960@tjchester I’ll have a look, thanks.
April 18, 2015 at 1:08 pm #39101@alyssa-buddyboss
AlyssaParticipant@style960 looks like it may not work with IE7/8 but those aren’t support any longer according to post here: http://stackoverflow.com/questions/4741351/how-to-consistently-set-background-image-on-html-element
April 19, 2015 at 2:21 pm #39132@style960@tjchester This works but the scroll-area that sits behind the primary navigation would need to be fixed as well since it scrolls with the page to reveal the background image.
April 20, 2015 at 8:38 am #39143@alyssa-buddyboss
AlyssaParticipantWere you able to figure this out?
April 20, 2015 at 2:32 pm #39157@style960@tjchester Yeah, all sorted now. Thanks.
April 21, 2015 at 10:52 am #39203@alyssa-buddyboss
AlyssaParticipantGreat!
July 31, 2015 at 1:49 am #43632@surfbuddy@tjchester Hi, I would like to set the desktop theme -always, and keep the scroll-area fixed at all times. It can switch to mobile theme at 320px. How can I achieve this while also keeping the buddypress profile menu nav items to always display as mobile(as icons)? Thanks
August 1, 2015 at 1:16 pm #43686@alyssa-buddyboss
AlyssaParticipant@surfied I’m afraid the theme is not able to do this. With being a highly specific application you would need custom work to complete this task.
August 1, 2015 at 3:47 pm #43693@surfbuddy@tjchester. I see. In desktop theme, the scroll-area(buddy panel) stays fixed for some pages like activity, but scrolls down for the member profile page. How can I keep the scroll-area fixed in the member profile page as well?
August 2, 2015 at 9:19 am #43752@alyssa-buddyboss
AlyssaParticipant@surfied can you show me some examples of what you mean?
August 4, 2015 at 12:54 pm #43884@surfbuddy@tjchester I see you updated your demo site and removed the buddypanel scroll-area fixed in non buddypress profile pages. You should have fixed it the other way around. It doesn’t make sense to not have the buddypanel fixed, as it serves as a nav menu just like the fixed header. When the user scrolls down and the buddypanel menu disappears, it becomes a blank waste of space and also disregards its purpose of a nav menu. Would love to see a fix for this.
- The question ‘Nav bar width’ is closed to new replies.