Archived topic
Problem with header and content when scrolling on mobile
7 replies · Started by Roger on July 22, 2021
Hi,
I found two problems in the mobile version of my website:
1. The header is not holding steady when the page is scrolled down.
2. Space to the right of the page.
Hi there,
the issue isn't just on mobile - i can sideways scroll on desktop too.
Can you disable your cache/optimization plugins as its commenting out a lot of links in the head of your site, and that may be causing the layout to break.
Hello Davi,
Disabled WP Fastest Cache and other plugins. But the problem persists.
Try disabling all other plugins excerpt for GP Premium temporarily as something looks to be conflicting.
All plugins are disabled.But the problem persists.
Hi Roger,
I'm unable to see issue #1.
Any chance you can show a screen recording? And provide the device details as well? example: Safari - iPhone 12
but for #2:
Try adding this CSS:
label.wp-block-search__label.screen-reader-text {
width: fit-content !important;
height: auto !important;
}
Hi Elvin,
This code fixed both problems.
Thanks!
Nice one. No problem. :D