[Resolved] Content and featured image too wide on posts

Home Forums Support [Resolved] Content and featured image too wide on posts

Home Forums Support Content and featured image too wide on posts

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1974348
    Stephen

    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.

    #1974407
    David
    Staff
    Customer Support

    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;
    }
    #1975065
    Stephen

    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.

    #1975108
    David
    Staff
    Customer Support

    Move that CSS to the top of the Customizer > Additional CSS… its currently added inside a @media query that only applies to desktop.

    #1975120
    Stephen

    Moved it up, but it didnt make a difference for the content/featured image.

    #1975129
    David
    Staff
    Customer Support

    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/

    #1975379
    Stephen

    Thanks, that did the trick!

    #1975529
    David
    Staff
    Customer Support

    Glad to hear that!

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.