Wordpress: Simple solution to have mobile devices load a different homepage -


i have done quite bit of googling , have not found simple solution method or plugin load different static homepage mobile devices. there way or plugin (without revamping whole site mobile devices, mobile site style good, specific static homepage thing need changed). wordpress cms platform.

thanks in advance!

update:

so installed plugin suggested below, copied on exact copy of theme using named 'mobile' in front reference, other same. read via google add following code functions.php theme file shows blank when add specific code. code:

//set homepage $mobilehome = get_page_by_title( 'mobilehome' ); update_option( 'page_on_front', $mobilehome->id ); update_option( 'show_on_front', 'page' );  // set blog page $blog   = get_page_by_title( 'blog' ); update_option( 'page_for_posts', $blog->id ); 

update 2, solved.

i found simple solution. created new theme file 'page-home.php' , changed css class '#primary' '#primary-home', went style.css file , added '#primary-home' css attributes match '#primary', except on mobile css area of stylesheet, added "display:none;" #primary-home. doesn't display homepage on mobile devices, other pages work (whole point in making new template page , css attribute). know fix simple easy fix worked me!

i think simple get:

try plugin - useragent theme switcher

it use user-agent detect browser on, in case mobile safari or android, etc... serve theme based on that.

this hit or miss because might want or not change theme. more advanced way use jquery plugin checks user agent , lets "do stuff" after detect it, in case serve page or change css.


Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -