自定义手机主题 [英] Custom mobile theme

查看:24
本文介绍了自定义手机主题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好的,

所以我自己想出了如何使用 Artisteer 模板制作移动网站.

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

基本上,我将工作表更改为 100% 流体宽度,最小 300 像素,一列,去掉菜单并用垂直菜单替换它,去掉大部分块或将它们放在垂直菜单下,使一切变得更小更简单.较小的字体、除 3px 之外的大部分内边距、使标题更短、使垂直菜单栏高到足以用手指按下等.我的新移动友好网站看起来很棒.

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.

那么现在呢?我是否将其导出为 WordPress 主题,然后为每个网站安装两次 WordPress?

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

或者我是否将其导出为 html、使用重定向 WordPress 插件、添加 RSS 提要?

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

嗯...我想我可以尝试 html,但无论如何都希望得到一些反馈.

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

推荐答案

您绝对不希望安装两次 Wordpress...使管理开销增加一倍、内容重复等 - 不是要走的路.

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

IMO 最简单的方法 - 事实上,这是一些商业移动主题开发人员推荐的方法 - 是使用像 http://wordpress.org/extend/plugins/mobile-theme-switcher/ 它只是检测客户端设备的用户代理,如果是移动设备,则切换到您的移动主题设备.一个 Wordpress 安装,两个主题.

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.

这篇关于自定义手机主题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆