- This topic has 12 replies, 5 voices, and was last updated 2 years, 1 month ago by Elvin.
-
AuthorPosts
-
October 19, 2021 at 1:13 pm #1968977Brent
Hi Guys –
I’ve got 2 header widgets stacked, which is how I’d like them. However, I’d like the position to be in the upper right-side header, above the navigation. Right now they are floating to the immediate right of the navigation. Can you help me with the CSS?
Thanks
October 19, 2021 at 2:34 pm #1969050YingStaffCustomer SupportHi Brent,
In this case, can you try using Top bar widget instead of Header widget?
Let me know if that works π
October 19, 2021 at 2:37 pm #1969051BrentWhen I tried that – it’s putting one of the widgets on the left side. I’d like them to look just like they do now, just above the nav. Any idea why it won’t stack the 2 widgets, both on the right side?
Thanks!
October 19, 2021 at 3:14 pm #1969067YingStaffCustomer SupportCan you keep them in the topbar widget? So we can help with some custom CSS π
October 19, 2021 at 3:38 pm #1969076BrentFor sure. Thanks!
October 19, 2021 at 5:21 pm #1969122YingStaffCustomer SupportTry this CSS:
body .top-bar .inside-top-bar { flex-direction: column; align-items: flex-end; }
I noticed you have 3 empty widget blocks in the Topbar area, if there’s no specific reason, I think it’s better to get them removed π
October 20, 2021 at 7:41 am #1969604BrentHi Ying –
Thanks! It’s almost there. How do I remove the padding/spacing above the logo on the left? I’d like the logo to be horizontally in line with the icons on the right – or as close as it can be.
October 20, 2021 at 7:42 am #1969606BrentIf there is not a way to remove the padding/spacing above the logo – if the icons/phone are moved below the navigation – would that solve it?
Thanks
October 20, 2021 at 8:01 am #1969804DavidStaffCustomer SupportHi there,
try adding this extra CSS:
.top-bar { position: absolute; z-index: 1; right: 0; top: 5px; }
You can adjust the
top: 5px;
value to move it down.
I would suggest increasing the Customizer > Layout > Header > Top Padding to match thetop: 5px;
value to stop there being any overlap of the widgets and the navigation.October 20, 2021 at 8:10 am #1969814BrentHi David –
Perfect! Thank you so much for the assistance.
October 20, 2021 at 8:29 am #1969826DavidStaffCustomer SupportGlad we could be of help!
One thing i would suggest is to increase the Mobile Menu Breakpoint in Customizer > Layout > Primary Navigation. If you currently reduce the width of your browser you will see on narrower screens the menu runs to two lines. Increasing the mobile menu break point will resolve that.March 9, 2022 at 5:49 am #2147987SusanneHi,
I looked for something like that (header widget above the navigation with the logo on the left side, and navigation and widget on the rihgt side). I tried using the top bar widget instead, this works but the absolute position of the top bar puts the widget at the very right side whereas for the whole website I use a container (1440px) so the top bar should be inside the container.
Do you have a solution for this?
Thank you in advance!
March 9, 2022 at 6:26 pm #2148904ElvinStaffCustomer SupportHi Susanne,
Can you open a new topic for this? So you can use the private information text field to provide us the site details –
https://docs.generatepress.com/article/using-the-premium-support-forum/#private-informationIf you can link us to the site in question, we can check it for you to see what can be done. π
Let us know. π
-
AuthorPosts
- You must be logged in to reply to this topic.