Archived topic
Login widget next to secondary nav menu?
6 replies · Started by blackbird on July 30, 2021
Hi I love that there is now a proper WP login/logout widget. I want to change to that widget, instead of the login/logout-plugin I am using right now. But I find it hard to place the widget were I want it in the top bar.
I want it to be placed and look exactly like it is right now, when I use a plugin short code in the meny to make a login/logout item: My secondary menu is in the top bar to the right, and I want the login-widget to be to the far right, tight next to the menu.
I have tried to put the widget in the top bar and merge that with the secondary menu, but that puts the widget to the far left... And I can not find any other widget area for the secondary nav? (If I am not confused from all my trial and errors...)
Is it possible to change the placement of the top bar widget to the far right, and still keep the sec nav menu also to the right?
Hi there,
Can you put the widget to the topbar and merge it with secondary navigation, so we can see if there's a CSS solution avalible?
Let me know :)
I have done it already, but hidden it "on desktop" with custom CSS. Can you work with that?
..But on the other hand, our visitors are on weekend now, so I have changde the CSS. Now you should see the widget to the left in the top.
Give this CSS a try:
.secondary-nav-aligned-right .secondary-navigation .top-bar {
order: 2;
margin-right: 0;
padding-left:32px;
padding-right: 32px;
}
secondary-navigation has-top-bar .inside-navigation {
justify-content: flex-end;
}
Let me know :)
Yes! That seems to be working!
Thank you so much!!
I did a quick test and will maybe need some more small tweaks, but my vacation just started so I will have to put it aside for a while now. But this will definitly help me. :-)
Great!
Enjoy your vacation :)