Search 谷歌网站搜索-我如何摆脱品牌?
我已经为我的网站支付了谷歌网站搜索费用,尽管它说你不需要品牌,但它在文本框上放置了“谷歌自定义搜索”水印。我不想显示它,但它似乎是由谷歌API的javascript添加的 你知道怎么去掉这个吗 我使用的代码如下所示 它使用谷歌Search 谷歌网站搜索-我如何摆脱品牌?,search,Search,我已经为我的网站支付了谷歌网站搜索费用,尽管它说你不需要品牌,但它在文本框上放置了“谷歌自定义搜索”水印。我不想显示它,但它似乎是由谷歌API的javascript添加的 你知道怎么去掉这个吗 我使用的代码如下所示 它使用谷歌 <div id="cse-search-form" style="width: 100%;">Loading</div> <script src="http://www.google.com/jsapi" type="text/javascr
<div id="cse-search-form" style="width: 100%;">Loading</div>
<script src="http://www.google.com/jsapi" type="text/javascript"></script>
<script type="text/javascript">
google.load('search', '1', {"nocss" : true});
google.setOnLoadCallback(function(){
var customSearchControl = new google.search.CustomSearchControl('XXXXXXXXXXXXXXX:xxxxxxxxxx');
customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
var options = new google.search.DrawOptions();
options.setSearchFormRoot('cse-search-form');
customSearchControl.draw('cse', options);
}, true);
</script>
<link rel="stylesheet" href="search.css" type="text/css" />
加载
load('search','1',{“nocss”:true});
setOnLoadCallback(函数(){
var customSearchControl=new google.search.customSearchControl('xxxxxxxxxxxxxxxxx:xxxxxxxxxxxxx');
customSearchControl.setResultSetSize(google.search.search.FILTERED\u CSE\u RESULTSET);
var options=new google.search.DrawOptions();
options.setSearchFormRoot('cse-search-form');
customSearchControl.draw('cse',选项);
},对);
我使用的是“搜索元素。提供最多的布局和自定义选项。”选项来自“外观”部分
还有,为什么我只得到一页的结果,然后一个从谷歌获得更多的链接?我想让人们留在我的网站上,当他们转到第2页时,他们应该在与第1页相同的位置看到它
有什么想法吗
谢谢如果您是GSS客户,您可以使用XML或在使用iframe时对代码进行以下更改,从您的CSBE中删除Google品牌: 从
到
确保在控制面板的“外观”部分中选择了一个非Javascript品牌选项
如果使用“覆盖显示”选项,在获取结果页面的代码后,请尝试以下步骤:
好的,终于让它工作起来了——最终采用了iframe解决方案。可以像上面所说的那样删除品牌。如果您是付费客户,请访问:
- 外观
- 自定义选项卡
- 谷歌品牌
选中“禁用谷歌品牌并保存”。将以下代码添加到CSS中:
input.gsc-input {
background: none !important;
}
这适用于所有人,而不仅仅是付费客户。谢谢,是的,我已经阅读了该页面,它似乎有点过时了,因为没有覆盖选项。外观部分的选项是“搜索元素”“Iframe”“谷歌托管页面”。我选择了“搜索元素”查看上面(原始问题中)的代码。。。。表单是由Google的AJAXAPI动态填充的。我下载了cse.xml文件,我注意到其中有一个类似这样的元素,我该如何设置“googlebranding”元素才能使水印不显示?谷歌API对此甚至没有提及。
<input type="hidden" name="cof" value="<<OLD VALUE>>;NB:1" />
input.gsc-input {
background: none !important;
}