• 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

Maintaining Mobile Responsiveness

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 › Maintaining Mobile Responsiveness

This topic is: not resolved

Tagged: mobile response, page expansion, page width

  • This topic has 2 replies, 2 voices, and was last updated 5 years, 8 months ago by Arekeon27.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • July 23, 2017 at 5:39 pm #209494
    Arekeon27
    Member

    I have the Remobile Theme and I wanted to expand the page width of the about and portfolio page.

    I used the following code in my stylesheet:

    .content {
        margin: 0 auto;
        width: 1400px;
    }

    However when I expand the page it completely loses mobile responsiveness. The text goes way past the header and footer and it looks terrible.

    Is there a way to expand the page width for desktop view while maintaining mobile responsiveness?

    http://kevinaross.com/?page_id=9
    July 24, 2017 at 6:28 am #209524
    Victor Font
    Moderator

    Mobile CSS is found in the media queries at the bottom of the style sheet. .content is a general class that applies to all Genesis pages. When you make change to a general class, it affects the site globally. If you want the change to apply to 2 pages only, you need to qualify the class so it applies only to those two pages.

    The first thing I would do for your site is save WordPress permalinks. page_id=9 is not a clean permalink. If you save the permalinks using the post name, the page will be kevinaross.com/about/.

    WordPress automatically adds a CSS class to the body tag of every page on your site based on the page id. For your About page, the CSS class is page-id-9. Your portfolio page is page-id-129. You use these classes to qualify the CSS change you made to limit the change to the two pages. The qualified CSS for both pages is:

    .page-id-9 .content,
    .page-id-129 .content {
        margin: 0 auto;
        width: 1400px;
    }

    Last, you have to adjust the width in the media query breakpoints, maybe change the width to width:auto. You'll have to experiment with this on your own to find the look you want.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    July 25, 2017 at 5:26 pm #209580
    Arekeon27
    Member

    Victor,

    Thanks for the advice.

    Unfortunately adjusting the width to auto in the media queries has zero effect on mobile.

    Even changing the width% from 1% to 1000% seems to affect the layout of the text but it never looks good no matter what I try.

    Any other ideas?

    Kevin

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

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

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 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