Site logo

Archived topic

Cannot position header widget on right side

13 replies · Started by Kaiser on March 30, 2022

Viewing posts 1–14 of 14

I added a widget on the header but it shows in center under the logo instead of right side. How can I move the widget to the right?

The site is in internal network. Is there any way I can show you the screen or code?

Here is the screen shot

I only upload a background picture and a logo image. Then the following additional css (I have tried to remove all css but the widget still in the center):

@media (min-width: 1081px) {
.site-header
.header-image {
padding-bottom:10px;
height:70px;
width:400px;
}

.site-header {
height:70px;
}
.main-title {
text-shadow: 0px 0px 3px #000;
text-indent: 10%;
}

.site-logo {
padding-left: 10px;
}
}

@media (max-width: 1080px) {

.site-header
.header-image {
height:45px;
}

.site-header {
height:120px;
}
.main-title {
text-shadow: 0px 0px 3px #000;
}
}

.inside-header {
padding: 10px;
}

.header-widget-right {
text-align:left;
text-shadow: 0px 0px 3px #000;
color: #fff;
padding-right: 50px;
padding-top: 15px;
}

I see.

Can you try adding this CSS in Appearance > Customize > Additional CSS:

.site-header > .inside-header.grid-container {
    position: relative;
}

.header-widget {
    position: absolute;
    right: 0;
    padding-right: 10px;
}

If it works, kindly replace 10px to your preferred right padding value.

Kindly let us know how it goes. :)

It works. Thank you very much!

You’re welcome Kaiser! Glad that worked! Feel free to reach out anytime you’ll need assistance with anything else. :)

You guys have the best support feedback. Your CSS works brilliantly expect on mobile. It would be helpful to have the widget center under logo on mobile.
my site: https://a1welding2022.wpengine.com/

I've tried a couple variation with @media-- so thanks for any insights!
-Doug

Hi there,

change this CSS:

.header-widget {
    position: absolute;
    right: 0;
    padding-right: 20px;
}

to:

@media(min-width: 1024px) {
    .header-widget {
        position: absolute;
        right: 0;
        padding-right: 20px;
    }
}

Exactly. Thank you!

Glad we could be of help

This archived topic is closed to new replies.