- This topic has 11 replies, 3 voices, and was last updated 6 years, 9 months ago by David.
-
AuthorPosts
-
July 17, 2017 at 7:59 am #350631David
Hey,
How can I lift the primary navigation menu on this page so that it sits in between the silver bullet logo and the microsoft logo and simultaneously make the header transparent and merge it into the site header so that the background video goes up into the top bar?
July 17, 2017 at 8:00 am #350632DavidForgot to add…
Here is the screenshot: https://www.dropbox.com/s/zdtvrh5xl0rvqwl/Screenshot%202017-07-17%2010.55.57.png?dl=0
Here is the webpage: http://nvosystems.com/home-2/
Thank you!
July 17, 2017 at 10:01 am #350707DavidI have updated the site so please refer to the screenshot above to understand what I meant when I wrote the question : )
If you look at this page: http://nvosystems.com/home-4/
You’ll see I’ve made progress. Now, I just want to add the microsoft logo to the right side of the header and center the nav between the two logos.
Looking forward to your guidance!
July 17, 2017 at 10:19 am #350726TomLead DeveloperLead DeveloperTry this CSS:
@media (min-width: 769px) { .inside-header { text-align: center; } .nav-float-right .inside-header .main-navigation { float: none; display: inline-block; } .site-logo { float: left; } .microsoft-logo { float: right; } }
Then add your microsoft logo into the After Header Content hook in GP Hooks:
<div class="microsoft-logo"> <img src="URL TO LOGO" alt="" /> </div>
July 20, 2017 at 6:55 am #352225DavidThanks for understanding what I was asking. Looks like it worked!
Is there anything I should be aware of when using this approach? Any limitations? Any issues with responsiveness?
July 20, 2017 at 7:10 am #352232DavidAlso, how can I hide the microsoft logo on mobile?
And, would it be possible to insert the Microsoft logo as the last item in the primary nav menu? While this wouldn’t retain the 3 column look, it might be simpler.
Thank you.
July 20, 2017 at 8:47 am #352284LeoStaffCustomer SupportHi there,
The CSS only applies to desktop so it should be fine responsive wise.
To hide Microsoft logo on mobile:
<div class="microsoft-logo hide-on-mobile"> <img src="URL TO LOGO" alt="" /> </div>
Are you looking to insert the logo into the navigation for logo only or desktop as well?
July 20, 2017 at 9:59 am #352338DavidThanks for the speedy response.
A few issues are happening with the first approach in terms of responsiveness:
1. at ~1206 pixels: https://www.dropbox.com/s/z2299gypojtn5c1/Screenshot%202017-07-20%2012.52.29.png?dl=0
2. at ~1193 pixels: https://www.dropbox.com/s/yaulkj9c159x4v8/Screenshot%202017-07-20%2012.54.54.png?dl=0
3. at ~763 pixels: https://www.dropbox.com/s/ziy84cjqkujgjwv/Screenshot%202017-07-20%2012.56.11.png?dl=0Could you help me understand how to fix these? Thanks for your help!
July 20, 2017 at 12:10 pm #352402LeoStaffCustomer SupportHmm if you
hide-on-mobile
class suggested above, the logo shouldn’t show up at 763.You can also add
hide-on-desktop
too.One other thing to try is to trigger mobile menu at an earlier width: https://docs.generatepress.com/article/mobile-navigation/#initiating-the-mobile-navigation-at-a-different-width
July 20, 2017 at 12:16 pm #352406DavidI’ll try that and see if it works. That said, hiding on desktop wouldn’t make sense because I want it to show up on desktop.
As a fall back, I’d like to know how to insert the microsoft logo as the last list element in the primary nav. Do you have instructions on how to do that?
Thank you
July 20, 2017 at 12:22 pm #352408LeoStaffCustomer SupportSorry I meant
hide-on-tablet
.You can use this hook: https://docs.generatepress.com/article/generate_inside_navigation/
July 23, 2017 at 1:40 pm #353666DavidThank you.
How do I push the menu underneath the silver bullet logo (it’s sitting next to it right now) and center both?
This is what it looks like right now: https://www.dropbox.com/s/4ko7gyy5r4zseoh/Screenshot%202017-07-23%2016.39.54.png?dl=0
-
AuthorPosts
- You must be logged in to reply to this topic.