如何从搜索结果/关键字中删除页面元素? [英] How to remove page element from search results / keywords?
问题描述
问题在这里。我有简单的页面与表单,而不是其他文本内容。在表格中,我有例如:
< h1>它应该是我的搜索结果< / h1>
< form>
< option> January< / option>
< option> February< / option>
...
< option> December< / option>
< / select>
< / form>
在搜索结果/网页关键字中,我有比其他重要内容更多的月份名称,其中关键字应该是IT只能是我的搜索结果。我如何禁止从结果中选择内容?可能吗?
重新定位代码(如其他答案中所述)标记级别。但是,它不会处理您想要禁止的月份名称的关键字密度。
如果您的网页上有多个下拉列表他们;你可以在页面完成加载后使用Javascript来添加下拉菜单。它会将它从Google Crawler中压制出来,同时也将其留给网站访问者。 (注意:在搜索引擎优化级别,谷歌不喜欢你向Google展示一个不同的页面,而不是一个页面被显示给网站访问者;但我认为这不会对你造成伤害)。
如果你的月份名字在字面上位于搜索结果内容中,你可以尝试使用服务器端代码(PHP,ASP.NET等)完全过滤掉月份名称或用省略号替换它们;虽然,可能会令人困惑
这实际上取决于您的结果页面的样子。需要更多信息来获得更好的解决问题的最佳方法。
Problem is here. I have simple page with form and not so much other text content. In form I have for example:
<h1>It should be my search result</h1>
<form>
<select name="Months">
<option>January</option>
<option>February</option>
...
<option>December</option>
</select>
</form>
In search results/page keywords I have more months names than other important content, where keywords should be IT SHOULD BE MY SEARCH RESULT only. How I can disable select content from results? Possible?
Repositioning the code (as mentioned in the other answer) does work when you're trying to prioritize content on the markup level. However, it doesn't take care of the keyword density of the month names you want to suppress.
If your page is littered with multiple dropdowns with the same 12 months in them; you could use Javascript to add the dropdowns after the page is done loading. It will suppress it from Google Crawlers while also leaving it in for site visitors. Of course, too much Javascript will be a performance hit.
(Note: on a SEO level, Google doesn't like when you show Google a different page than what would be shown to a site visitor; but I don't think this would hurt you).
If your month names are literally inside the search results content, you could try using server side code (PHP, ASP.NET, etc.) to filter out the month names entirely or replacing them with ellipses; though, may be confusing
It really depends on what your results page would look like. More information would be needed to get a better idea on the best way to tackle it.
这篇关于如何从搜索结果/关键字中删除页面元素?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!