- This topic has 14 replies, 5 voices, and was last updated 10 months, 3 weeks ago by
David.
-
AuthorPosts
-
November 8, 2020 at 11:30 am #1522920
Mike
Hi guys,
I’ve tried to accomplish the menu on the left thing but I couldn’t find an option integrated in theme. Is there any way?
I’ve also searched for similar topics and found this one https://generatepress.com/forums/topic/layout-like-twentyfifteen-with-second-menu/, which provides an workaround, but I’ve also seen Tom said “The sidebar header layout is something I want to add to the theme.”
Is this feature added?
I want a really simple layout, only with the menu on left side and posts feed in right, exactly like in twenty fifteen theme.
Kind regards,
MikeNovember 8, 2020 at 11:37 am #1522927Leo
StaffCustomer SupportHi there,
Take a look at this:
https://docs.generatepress.com/article/header-examples/#example-7Let me know if this helps ๐
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/November 8, 2020 at 11:59 am #1522945Mike
Ha, u’re magic mate!
I’ll try it and come back with feedback. Thanks! ๐
November 8, 2020 at 1:36 pm #1523009Mike
It worked.
One more question. Is there any way to put the search field right under the logo?
(between logo and nav menu, on top of nav menu)Thank you for your help!
November 8, 2020 at 1:42 pm #1523012Elvin
StaffCustomer SupportHi,
Any chance you can link us to the site in question? So we could check for the proper css.
You can add the site details on the Private Information text field. Thanks! ๐
If you’re using flexbox, we should be able to play around with it and change the display order using CSS
order:xx
property.A wise man once said:
"Have you cleared your cache?"November 8, 2020 at 2:03 pm #1523020Mike
Hi Elvin,
Sure, please find below the credentials.
Thank you very much!
Mike
November 8, 2020 at 3:34 pm #1523074Elvin
StaffCustomer Support/* put search in-between logo and menu */ .header-widget { order: 1; } /* Reduce bottom margin, add top margin */ .header-widget aside#search-4 { margin: 20px 0 20px 0; }
A wise man once said:
"Have you cleared your cache?"November 9, 2020 at 2:03 am #1523459Mike
Elvin, you are amazing.
It works properly.
This is the last thing for today, I promise ๐
I noted down some mini tasks and I did most of them by myself, but I’m afraid not to ruin anything in other parts.
Because you know how it is in development, you fix something here, it breaks elsewhere -_-‘The minitasks for header:
1) menu should have the width of parent (same width as search widget) (did it)
2) text of menu items to be left aligned (did it)
3) align dropdown arrow (.dropdown-menu-toggle) to right (didn’t manage to do it)
4) dropdown menu to remain (not hover) (didn’t manage to do it)Could you please help me with your expertise over this code I’ve written for #1 and #2? It doesn’t look good to me and I worry it can impact other features/structures. (afraid not to break anything elsewhere)
This is the code:
.main-navigation, .main-nav {
width: 100%;
}
.main-nav {;
width: 100%
}.main-nav .menu-item {
width: 100%;
border-bottom-style:groove;
border-width:0.1px;
}.main-navigation .main-nav ul li a {
padding-left: 1px;
padding-right: 20px;
line-height: 40px;
}Afterwards, we can share this header style to everybody, maybe there are fellows who find it useful. ๐
Hope you have an amazing Monday,
MikeNovember 9, 2020 at 11:37 am #1524376Elvin
StaffCustomer Support3) align dropdown arrow (.dropdown-menu-toggle) to right (didnโt manage to do it)
Add this css:
.menu-item-has-children .dropdown-menu-toggle {
float: right;
}4) dropdown menu to remain (not hover) (didnโt manage to do it)
Read this documentation.
https://docs.generatepress.com/article/navigation-dropdown/Could you please help me with your expertise over this code Iโve written for #1 and #2? It doesnโt look good to me and I worry it can impact other features/structures. (afraid not to break anything elsewhere)
The code seems fine. But as an advice, be uniform and more specific about it if you can.
Example:
.main-nav .menu-item
and.main-nav ul li
are literally the same thing. Pick a uniform way of writing it so you don’t get confused in the future when you have to go back to this.Btw, in cases where say, there are grand child of the same element like
.main-nav ul li ul li
, if you want the CSS to apply only on the parent, you’ll have to use>
as in.main-nav ul > li
or.main-nav ul > li.menu-item
.A wise man once said:
"Have you cleared your cache?"November 10, 2020 at 1:04 am #1524918Mike
Thank you so much!
I will close the ticket as solved!
10 stars review
November 10, 2020 at 11:16 am #1525811Elvin
StaffCustomer SupportNo problem. ๐
A wise man once said:
"Have you cleared your cache?"August 5, 2021 at 1:10 am #1884522Damiaan van Vliet
Hi team, is above mentioned still the best option to have a layout like Twenty Fifteen with GP? When yes, that’s what I will do ๐
August 5, 2021 at 2:54 am #1884626David
StaffCustomer SupportHi there,
i doubt much will have changed since last year _ so Yes ๐
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/August 5, 2021 at 3:06 am #1884633Damiaan van Vliet
Thanks David!
August 5, 2021 at 4:28 am #1884720David
StaffCustomer SupportYou’re welcome
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/ -
AuthorPosts
- You must be logged in to reply to this topic.