Custom mobile theme

2019-08-26 03:25发布

问题:

Okay,

So I figured out on my own how to make a mobile site out of an Artisteer template.

Basically, I changed the sheet to 100% fluid width, minimum 300 px, one column, got rid of the menu and replaced it with a vertical menu, got rid of most of the blocks or put them under the vertical menu, made everything smaller and simpler. Smaller fonts, got rid of most of the padding except for 3px, made the header shorter, made the vertical menu bars tall enough to press with a finger, etc. My new mobile-friendly site looks great.

So now what? Do I export it as a WordPress theme and then have two installations of WordPress for every website?

Or do I export it as html, use a redirect WordPress plugin, an add an RSS feed?

Hmm...I think I may try html, but would love some feedback anyhow.

回答1:

You definitely don't want two installations of Wordpress... double the admin overhead, duplicate content etc - not the way to go.

Easiest way IMO - and indeed, this is the way recommended by some commercial mobile theme developers - is to use a plugin like http://wordpress.org/extend/plugins/mobile-theme-switcher/ which simply detects the user agent of the client's device and switches to your mobile theme if it's a mobile device. So one Wordpress installation, two themes.

I know recommending a pluign isn't really the SO way :) - you can always look through the code and integrate it directly into your theme if you needed to.



标签: wordpress