• Resolved Pat Hawks

    (@pathawks)


    I use lots of voodoo with a Static Front Page to make my site look just so. All of this breaks when using the JetPack mobile theme, which is to be expected.

    What I would like is, when a mobile user views the front page, to instead load just a regular list of posts. It seems like this would be doable by checking jetpack_is_mobile() && is_front_page() and tweaking the query, but it’s just beyond my grasp.

    Any help would be greatly appreciated.

    https://ww.wp.xz.cn/plugins/jetpack/

Viewing 1 replies (of 1 total)
  • Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    You can use the instructions to load a specific function only on mobile:
    http://jetpack.me/2013/06/27/customize-mobile-theme/#throughactionsandfilters

    Only instead of loading a small function, you could use template_redirect (reference) to load your own custom voodoo static front page template.

    Another alternative would be to not use WordPress’ static front page feature. Instead, have your custom query be displayed instead of the default list of recent posts that appears on the home page when you don’t use the Front Page option.

    I hope this helps.

Viewing 1 replies (of 1 total)

The topic ‘Avoid static front page on mobile’ is closed to new replies.