- This topic has 17 replies, 2 voices, and was last updated 9 years, 5 months ago by
Tom.
-
AuthorPosts
-
October 27, 2016 at 1:20 pm #239471
Oleg
Hi Tom!
I want menu as on the site: http://learn.javascript.ru
1) There must be order: logo, floating right menu, header widget. All in one line.
2) Header must be the full width of the page.Thanks!
October 27, 2016 at 1:32 pm #239477Tom
Lead DeveloperLead DeveloperHi there,
1. Use the navigation logo to add your logo to the navigation, then hide your main header:
.site-header { display: none; }Adding the header widget into the navigation would require custom programming, but those elements can be added as custom menu links. For example: https://generatepress.com/knowledgebase/menu-social-icons/
2. This should do it:
.inside-header.grid-container { max-width: 100%; }You can definitely achieve something very close to what they have there 🙂
October 27, 2016 at 1:50 pm #239484Oleg
I have chosen to display the menu in the header float right.
I also use a widget in the header.
Default widget in the header is displayed over on the menu.
How to make, so it appears to the right of the menu?October 27, 2016 at 11:48 pm #239551Tom
Lead DeveloperLead DeveloperHmm, you could try this:
.nav-float-right .inside-header .main-navigation { clear: none; }However, I highly suggest just adding your content as a menu item.
October 28, 2016 at 12:00 am #239553Oleg
Thank you!
How to add a top margin for this widget?October 28, 2016 at 12:45 am #239568Tom
Lead DeveloperLead Developer.header-widget { margin-top: 10px; }October 28, 2016 at 9:38 am #239671Oleg
Thank you!
And the last.
How to align with the menu in the middle? Between the logo and the widget.October 28, 2016 at 10:44 am #239684Tom
Lead DeveloperLead DeveloperI guess you would have to use margin as well:
@media (min-width: 769px) { #site-navigation { margin-top: 10px; } }October 28, 2016 at 10:48 am #239688Oleg
I mean, in width. I want this: Left logo, the menu in the center of the widget on the right.
October 28, 2016 at 10:49 am #239689Tom
Lead DeveloperLead DeveloperI think you might be better off going with a method like this: https://generatepress.com/forums/topic/header-layout/#post-217337
October 28, 2016 at 11:39 am #239697Oleg
I made for your recommendation:
Problems:
“grid-33 navigation-area” – Not fully fit. We need more space.
“grid-33 social-icon-area” – Not aligned to the right. It is necessary to align the right edge.
October 28, 2016 at 11:40 am #239698Tom
Lead DeveloperLead DeveloperIt will require you to adjust it as you need to.
Adjust the grid percentages to give it more space, just make sure they add up to 100.
Target the
.social-icon-areaclass and addtext-align: right;October 28, 2016 at 11:44 am #239699Oleg
Adjust the grid percentages to give it more space, just make sure they add up to 100.
– a CSS for this need?
October 28, 2016 at 12:04 pm #239708Tom
Lead DeveloperLead DeveloperYou can just adjust the
grid-33class.First column:
grid-20Second column is:
grid-60Third column:
grid-20= 100
That might work better 🙂
October 28, 2016 at 12:16 pm #239712Oleg
Yes, but how to write correctly in CSS? Let it be 20, 60 and 20
<div class="grid-33 logo-area"> <img src="http://obuylov.ru/test10/wp-content/uploads/sites/26/2016/10/cropped-RT_logo_eng_v2.png" alt="" /> </div> <div class="grid-33 navigation-area"> <?php generate_navigation_position(); ?> </div> <div class="grid-33 social-icon-area"> Social icons HTML/widget here </div> -
AuthorPosts
- You must be logged in to reply to this topic.