Sticky Header Not Centered - Question | JoomShaper

Celebrate JoomShaper's Sweet 16 with Flat 35% OFF!

Sticky Header Not Centered

AR

Alex R.

Template 2 weeks ago

Hello, I am using the barber template and having issues that the sticky header is not centered in the website.

The initial header is displayed correctly, however when a user scrolls the site, the sticky header aligns left instead of center.

0
5 Answers
Atick Eashrak Shuvo
Atick Eashrak Shuvo
Accepted Answer
Support Agent 2 weeks ago #225218

Please add the following CSS code to your Template Options -> Custom Code -> Custom CSS

@media (min-width: 992px) {
    #sp-header.header-sticky{
    display: flex;
    justify-content: center;
    max-width: 100%;

}

#sp-header.header-sticky .row{
    width:1850px
}
}

After applying the change, please make sure to clear both your Joomla cache and your browser cache to see the updated result.

0
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 4 days ago #226105

Thanks for accepting the answer.

0
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 2 weeks ago #225153

Hi,

Thank you for reaching out. The page appears to be rendering correctly on my end. Could you please let me know which screen resolution or device you are using when encountering this issue?

-Regards.

0
AR
Alex R.
Accepted Answer
2 weeks ago #225157

Hi Mehtaz, this is an issue on both my workstations, dual 2K (1440p) and dual 4K (2160p) screens, on Windows 11.

0
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 1 week ago #225623

Glad to know that its solved.

0