在网站的meta属性增加Safari的一个小插件
在网站的meta属性增加Safari的一个小插件
Sandy效果图:
实现方法:
先按照这个插件做:http://sandy.int.ru/share/wordpresszhutihoutaishezhikuangjiaoptionsframework.html
然后编辑当前模板文件:
打开header.php文件
加入:
打开options.php文件
$options = array();
$options[] = array(
‘name’ => __(‘基本设置’, ‘options_framework_theme’),
‘type’ => ‘heading’);$options[] = array(
“name”=>’设置APPID号’,
“desc”=>’输入您的iTunes Connect的Apple ID 号’,
“id”=>’appid’,
“std”=>’输入您的Apple ID 号’,
“class”=>’mini’,
“type”=>”text”
);
打开后台,外观 - Theme Options就会出现如下设置:
然后通过iPhone下的Safari访问http://chadao.idwoo.com,你就会发现提示APP是否已经下载,已经下载就会提示请用APP打开访问!
测试了一下Chrome发现是不知道,还得另外写一个插件让其他的浏览器提示一下!

