<?php
/*
google seach
*/
?>
<?php get_header(); ?>
<p>
<p>   Google自定义搜寻代码   var match = location.search.match(/s=([^&]*)(&|$)/);//正则传参
if(match && match[1]){
var search = decodeURIComponent(match[1]);
customSearchControl.execute(search);
}
});
</script>
<link rel="stylesheet" href="http://www.google.com/cse/style/look/default.css" type="text/css" />
</p>
</p>
<?php get_footer(); ?>
以上就是安达网络工作室关于《WordPress添加并整合Google自定义搜索实现步骤及代码》的一些看法。更多内容请查看本栏目更多内容!
尚未装置WordPress 在初始配置WordPress之前,将wp-config.php中的$table_prefix值(默许为wp_)修正为所需求...
办法阐明 首先来看看可能被用到的办法. 关上文件 wp-includes/link-template.php 你会发现 WordPress 2.7 多...
复制代码代码如下:<?php/*Plugin Name: WPJAM HTML Widget TitleDescription: 让 Widget 题目支持简略的 HT...
函数意义 wp_nav_menu () 自定义菜单显示函数 register_nav_menu () 自定义菜单注册函数 – 复数 register_...
本文实例讲述了wordpress完成获取父类分类称号的办法。分享给大家供大家参考。详细剖析如下: 在wordpress中...
本文实例讲述了WordPress站点呈现404谬误时邮件告诉治理员的办法。分享给大家供大家参考。详细剖析如下: 这...