[wp-hackers] Overriding the template

Dan Smart dan at dansmart.co.uk
Sun Nov 18 22:11:33 UTC 2012


Hi Christian,

There are a number of mobile theme switching plugins out there, including (shameful plug) my Mobile Smart plugin that does what you need: http://wordpress.org/extend/plugins/mobile-smart/

Best,

Dan

(Sent from iPhone)
Dan Smart - Web Developer
www.dansmart.co.uk

On 18 Nov 2012, at 22:01, Christian Gundersson <christian at buro2.se> wrote:

> Hi,
> 
> I've been asked to adapt an existing WP site to mobile, but the current "theme" (emphasis on the "") will be a nightmare to handle. The client also wants the structure and content to be slightly different on the frontpage. Oh, and I also don't want to muck with the urls and create a /mob/ directory or subdomain or what have you.
> 
> I had an idea that perhaps I could write a separate template file and maybe do a check-for-mobile/switch-to-mobile thing. Any thoughts and/or ideas how this could be done? Suggestions? I'll take anything really :)
> 
> Cheers
> Christian
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers


More information about the wp-hackers mailing list