• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

How to fix line break issue for mobile display of Genesis – Featured Posts

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › How to fix line break issue for mobile display of Genesis – Featured Posts

This topic is: resolved

Tagged: Atmosphere Pro, featured posts, media query, text wrap

  • This topic has 4 replies, 2 voices, and was last updated 6 years, 2 months ago by Doug.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • September 18, 2019 at 4:37 pm #493630
    Doug
    Participant

    I'm using Atmosphere Pro with the Genesis - Featured Posts widget in my Home Page 2 slot, which features my latest post.

    It looks good on the desktop, but when viewed in mobile, I keep getting very odd text wrappings for whatever headline is entered. See screen grab:
    https://photos.app.goo.gl/ZBp7wqUsVcyGhBuT8

    I guess the best solution would be to force-wrap the text, which should look fine, for only the mobile view? I've looked at this with Inspect, but frankly don't have much sense of what I'm looking at, or if this is even doable. I see something in Inspect called text-decoration, but that doesn't seem right. Or the h4 class 'entry-title'; but I don't want to change this globally.

    Any suggestions greatly appreciated.

    doug

    https://dougschumacher.com
    September 19, 2019 at 12:31 am #493631
    Brad Dalton
    Participant

    What you can try is wrapping your CSS rules to modify the text in a media query so it only renders at a specific screen width for mobiles.


    Tutorials for StudioPress Themes.

    September 19, 2019 at 10:39 am #493646
    Doug
    Participant

    Thanks, Brad. Hadn't known of the media query approach.

    I'm working out something like this:

    @media screen and (min-width: 600px) {
      div {
        word-wrap: break-word;
      }
    }

    I've read that 600px is a good breakpoint for mobile.

    Re: word-wrap. I've also seen the line-break css property, but haven't found a good explanation of how that works. I've also seen the <br> element suggested.

    Do you know if it's possible to tie it to a specific widget? Otherwise, I'm concerned about tweaking this on a site-wide level.

    Thanks for any input on this.
    doug

    September 19, 2019 at 11:13 am #493647
    Brad Dalton
    Participant

    1. You could use something like .front-page-2 or .front-page-2 .featured-content as your div

    2. Another option is to use the widget id however the 1st method is better.


    Tutorials for StudioPress Themes.

    September 19, 2019 at 6:00 pm #493653
    Doug
    Participant

    Super. Totally makes sense. Thanks!

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘How to fix line break issue for mobile display of Genesis – Featured Posts’ is closed to new replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble