Front Page on mobile theme – different than static frontpage for desktop

  • Anonymous


    I have my blog set for a static front page and make use of the Homepanes – …. the mobile site corresponds to this: ….. doesn’t have my “posts” – just lists of categories I can choose to list.

    Since there isn’t really the equivalent to “panes” for the mobile site, it’d be nice to just have my posts listed as they are on the POSTS PAGE mobile site –

    Basically want to use the FRONT PAGE for desktop and POST PAGE for mobile – any way to do this? I want to stay with the graphene family – love the home panes AND the mobile theme – I just want to be able to use the full power of both.


    Kenneth John Odle


    You might want to try disabling your plugins first, to make sure that this is not a plugin-related issue.



    This is not a plugin related issue. He wants to show recent posts on mobile site homepage despite having a static front page.

    @Adam I’d write a custom function to list recent posts with except and hook it into any of action hooks available in index.php



    Or, redirect static front page to blog page only on mobile version, perhaps?



    I was thinking of doing the redirection … how can I do this for only mobile users? The urls I mentioned before were generated by manually switching … I would need to forward the root to ONLY FOR MOBILE USERS….

    Fyi – I’m using Mobile Smart plugin to do my switching



    Okay, I got a solution for redirecting homepage to posts page only for mobile devices. All you have to do is to add the below code to Graphene [url=]Mobile Child Theme[/url]’s functions.php file.

    function redirect_home_to_blog_mobile() {
    if ( is_front_page() ) {
    wp_redirect ( get_permalink( get_option( 'page_for_posts' ) ) );
    add_action('template_redirect', 'redirect_home_to_blog_mobile');

    You can see this on my test site. Open in a mobile phone and you’ll be redirected to which is the posts page.

    Ping me if you want any help to implement this on your site.

Viewing 6 posts - 1 through 6 (of 6 total)

  • You must be logged in to reply to this topic.