How to show a different homepage on mobile devices

Reader Interactions

Comments

  1. Oh that’s good and possibly very timely.
    This last week I experimented with serving mobile pages (initially just a different front page) using this code:
    https://github.com/serbanghita/Mobile-Detect

    I set up a frontpage.php template to call the mobile detect function.
    Then used their code for ‘if is mobile and not tablet’ to include a mobile file ‘else’ to include the full size file.

    It certainly works. However I’m also going to try your way now.
    Thanks

  2. Thanks Frank.
    Your code worked perfectly just now.
    I wonder though if there are SEO and UX implications of sending a mobile user to a different page instead of the regular home page.

    Cheers
    Neil

  3. Love the change you did there! We’ve been struggling with one of our sites and this issue. Thank you…might just give us the motivation to switch the site to Genesis now. Love that theme!

    Thx

Leave a Reply

Your email address will not be published. Required fields are marked *

Genesis as Foundation

I develop my themes and plugins exclusively for the Genesis Framework. Genesis is the most recommended WordPress framework and provides a secure and search-engine-optimized foundation for your website. You can't go wrong choosing Genesis.

Get Genesis

Sign in to your account

Lost password?Purchased via Bylt or Creativemarket? register here.