[resolved] Use a different template if mobile only on home page (3 posts)

  1. dholloran
    Posted 3 years ago #

    I have looked around and can not find anything that fully works for my issue I want to be able to set the home page template on the fly when a user is visiting from a mobile phone but not a tablet I already have this check in place. However I am able to change the whole theme on all pages when a visitor is on a phone but there does not seem to be a way to only change the template/theme on the home page. Due to the only way I know for sure is checking is_front_page() which does not exist when you hook to change the theme. I also want to try to do this without redirecting to another page if possible. Any help would be appreciated.

  2. esmi
    Forum Moderator
    Posted 3 years ago #

    Is your current home page static or a list of Posts?

  3. dholloran
    Posted 3 years ago #

    My current home page is static.

Topic Closed

This topic has been closed to new replies.

About this Topic