• 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

Mobile vs Desktop switching question:

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 › Mobile vs Desktop switching question:

This topic is: resolved

Tagged: design, mobile, responsive, selector

  • This topic has 3 replies, 2 voices, and was last updated 5 years, 7 months ago by Sridhar Katakam.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • February 19, 2018 at 4:12 pm #216778
    lbdesign
    Participant

    I am working on a site with such incredible client-specified details about how it needs to look on mobile vs desktop that it's essentially two different sites (or at least two different home pages). So I'm wondering about simply making two version of the homepage and using a detector to decide which page loads (vs loading all the elements for both, and using display:none to hide half the stuff with media queries).
    Has anyone dealt with this before?

    This particular issue involves galleries, plugins and other modules that I would rather not load twice per page and then hide half of them. 🙂

    I found this plugin (linked below) and am wondering if it's a good idea, or if there are better options for serving up completely different page designs for mobile vs desktop?

    Thank you in advance.

    Mobile Smart

    February 19, 2018 at 6:33 pm #216783
    Sridhar Katakam
    Participant

    There are plugins like Mobble which provides conditionals like is_mobile() so you can write conditional if statements in your template files.

    They aren't always reliable esp. if you there is caching. But give it a try..


    Genesis Tutorials | Follow me on Twitter

    February 21, 2018 at 4:24 am #216850
    lbdesign
    Participant

    Thank you Sridhar. Conditionals are a great approach. I bought the Mobile Smart Pro plugin at Codecanyon, because in addition to is_mobile, it let me set a totally different homepage for mobile vs desktop, which turned out to be the easiest solution.
    I'm terrified now that the plugin will eventually be abandoned, but figure that by paying for it, I can help ensure that it will be supported into the future.

    Since buying into Studiopress over 5 years ago, I've seen so many themes and plugins rise, fall, and be abandoned. It's nice Studiopress is still here.

    February 21, 2018 at 6:39 am #216857
    Sridhar Katakam
    Participant

    You could set that up using Mobble's is_mobile() and get_template_part() in the appropriate template file like front-page.php.


    Genesis Tutorials | Follow me on Twitter

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Mobile vs Desktop switching question:’ 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

© 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