Site logo

[Resolved] Change text wrap behavior of Blog Post Featured Image in chrome

Home Forums Support [Resolved] Change text wrap behavior of Blog Post Featured Image in chrome

Home Forums Support Change text wrap behavior of Blog Post Featured Image in chrome

  • This topic has 3 replies, 2 voices, and was last updated 4 years ago by Fernando.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2140180
    jasper

    Hello –

    I hope I can explain this in a way that makes sense.

    In the customizer, this is listed as customizing > layout > featured images > posts

    I have:
    Location > Below Title
    Alignment > Left
    Size > medium_large

    There is awkward text wrapping (in Chrome only) on smaller screens. Is there a way to change the behavior below a certain width? I would like to not make the text not wrap around the image when the image takes up most of the screen and there are only a few letters on the right side. Seems like this happens automatically in Firefox and Edge but not in Chrome. In the other browsers, the text stops wrapping sooner than it does in Chrome.

    Like I said I am not sure I have explained it well but I have included a screen shot in the private info.

    Thank you!

    #2140240
    Fernando
    Customer Support

    Hi Jasper,

    This is the default behavior when you have this setting in Appearance > Customize > Layout > Blog: https://share.getcloudapp.com/5zuLZDmZ. Moreover, it also expected to behave differently in different browsers.

    To force it not to wrap when it drops lower than a specific screen size, here is a custom CSS code you may use:

    @media (max-width: 1400px) {
        .featured-image.page-header-image-single {
            float:none !important;
        }
    }

    Kindly replace 1400 with your preferred screen size to disable wrapping of the text/float-left of the image.

    Here is an article with regards to adding custom CSS: https://docs.generatepress.com/article/adding-css/#additional-css

    Adding it through Additional CSS should work.

    Kindly let us know how it goes. 🙂

    #2141040
    jasper

    That works great. I added it in the customizer where I add everything else. I appreciate your help!

    #2141562
    Fernando
    Customer Support

    You’re welcome Jasper! Glad that works! Feel free to reach out if you’ll need assistance with anything else. 🙂

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