Loper主题修改搜索框提示为中文,Loper主题默认搜索框提示语言是英语的,本人感觉看上去有英语字很不爽很顺眼,所以我决定了把搜索框提示语言修改为中文,拽立网,也可以改为其他中文句子意思,今天我就把Loper主题修改搜索框提示为中文方法分享给大家,请看以下操作!
修改前的效果图!
1.登陆你的后台管理,选择【外观】-【编辑】-【搜索框 (searchform.php)】
直接搜索这个英语:
Search...and Enter
全部替换以下字体:
搜点什么...
2.如果嫌麻烦可以添加以下全部代码:
<?php $options = get_option('loper_options'); ?>
<?php if($options['googlesearch']) : ?>
<form method="get" id="searchform" class="search" action="<?php bloginfo('home');?>/search">
<input name="q" type="text" class="search_text" onblur="if(this.value =='')this.value='搜点什么...';" onfocus="this.value='';" onclick="if(this.value=='搜点什么...')this.value=''" value="搜点什么..." />
<input type="submit" value="" class="search_submit" />
</form>
<?php else : ?>
<form method="get" id="searchform" class="search" action="<?php bloginfo('home');?>/">
<input name="s" type="text" class="search_text" onblur="if(this.value =='')this.value='搜点什么...';" onfocus="this.value='';" onclick="if(this.value=='搜点什么...')this.value=''" value="搜点什么..." />
<input type="submit" name="button" value="" class="search_submit" />
</form>
<?php endif; ?>
修改后的效果图!
提示:英语字要修改6个,中文句子不一定要和我一样,可以改你喜欢的进去!

版权声明:本站原创文章,于2015年09月3日,由 拽立网 发表,共 1052 字。
打赏



ID : 别人笑我太疯癫
享你所想,享你所爱!分类目录 · Categories
最新文章 · Recent Posts
随机文章 · Random Posts
最新评论 · Recent Comments
友情链接 · Links
博客统计 · Blog statistics