Archived topic
Content and featured image too wide on posts
7 replies · Started by Sterk Digital on October 25, 2021
Hi,
When i open one of my posts on my iphone the featured image and the text of the article are too wide.
Other pages are fine, it just seem to be my posts.
I have added examples in the sensitive section.
Hi there,
i am seeing horizontal overflow on the page, but its not related to the featured image... its the core Search Block in the footer causing the problem.
Try adding this CSS:
.wp-block-search .wp-block-search__label {
width: auto;
}
Hi,
Tried this, but it doesn't seem to make a difference.
The post content and featured image still stretch all the way to the sides of the pages.
Move that CSS to the top of the Customizer > Additional CSS... its currently added inside a @media query that only applies to desktop.
Moved it up, but it didnt make a difference for the content/featured image.
It fixed the horizontal scroll issue.
Those posts have their Content Container set to Full Width, you need to set it to Default to bring back the theme padding:
https://docs.generatepress.com/article/content-container/
If that option isn't set in the post editor then check if theres a Layout Element set:
https://docs.generatepress.com/article/layout-element-overview/
Thanks, that did the trick!
Glad to hear that!