- This topic has 17 replies, 2 voices, and was last updated 7 years, 5 months ago by Tom.
-
AuthorPosts
-
October 27, 2016 at 1:20 pm #239471Oleg
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 #239477TomLead 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 #239484OlegI 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 #239551TomLead 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 #239553OlegThank you!
How to add a top margin for this widget?October 28, 2016 at 12:45 am #239568TomLead DeveloperLead Developer.header-widget { margin-top: 10px; }
October 28, 2016 at 9:38 am #239671OlegThank 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 #239684TomLead 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 #239688OlegI 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 #239689TomLead 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 #239697OlegI 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 #239698TomLead 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-area
class and addtext-align: right;
October 28, 2016 at 11:44 am #239699OlegAdjust 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 #239708TomLead DeveloperLead DeveloperYou can just adjust the
grid-33
class.First column:
grid-20
Second column is:
grid-60
Third column:
grid-20
= 100
That might work better ๐
October 28, 2016 at 12:16 pm #239712OlegYes, 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.