Site logo

Archived topic

Header Widget Positioning

12 replies · Started by Brent on October 19, 2021

Viewing posts 1–13 of 13

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

Hi Brent,

In this case, can you try using Top bar widget instead of Header widget?

Let me know if that works :)

When 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!

Can you keep them in the topbar widget? So we can help with some custom CSS :)

For sure. Thanks!

Try 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 :)

Hi 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.

If 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

Hi 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 the top: 5px; value to stop there being any overlap of the widgets and the navigation.

Hi David -

Perfect! Thank you so much for the assistance.

Glad 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.

Hi,

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!

This archived topic is closed to new replies.