$10
Setting Alternate Home Page of Mobile Version
I just built http://www.duffresearch.com with WooThemes Suit & Tie, and used Wordpress Mobile Pack to set an alternate mobile theme. I need help with the home page in mobile view. Suit & Tie compiles the home page by aggregating the contents of multiple other pages, and leaves the 'Reading Setting' configured to display "Latest Posts" as the home page, so the mobile version obeys that and displays the latest posts of the blog which isn't what I want.
In my case, there is one discrete page that'd make a make an acceptable home page, i.e. http://www.duffresearch.com/apps so I'm thinking maybe I could auto-redirect mobile users to that page? Any other suggestions?
Thanks in advance,
- Greg
In my case, there is one discrete page that'd make a make an acceptable home page, i.e. http://www.duffresearch.com/apps so I'm thinking maybe I could auto-redirect mobile users to that page? Any other suggestions?
Thanks in advance,
- Greg
GBarr | 02/27/10 at 3:21am
| Edit
(1) Possible Answers Submitted...
-

Last edited:
02/27/10
3:51amUtkarsh Kukreti says:If you have the plugin active already, this can be done using the function lite_detection which detects if the user is on a mobile device. I'll try to post in detail soon.
Edit: try this (add to theme functions.php)
function redirect_mobile_users_from_home()
{
if((is_front_page() || is_home()) && lite_detection())
{
echo '<meta http-equiv="refresh" content="0;URL=http://www.duffresearch.com/apps">';
}
}
add_action('wp_head', 'redirect_mobile_users_from_home');Previous versions of this answer: 02/27/10 at 3:34am
This question has expired.
Current status of this question: Completed




