繁体   English   中英

仅在 Blogger/blogspot 中的标签搜索页面上显示小部件

[英]Display widget only on label search page in blogger/blogspot

我只想在标签页面上显示 Blogger 小部件。 我在谷歌上搜索,但没有找到任何方法。 怎么做?

要在所有标签页面中显示小部件,请使用此条件

<b:if cond='data:blog.searchLabel'>
  <!-- all label pages -->
</b:if>

在特定标签页面中显示小部件

<b:if cond='data:blog.searchLabel == "foo"'>
  <!-- for label 'foo' -->
</b:if>

对于所有标签的页面,您的代码将是:

<b:if cond='data:blog.searchLabel'> <!-- HERE YOUR WIDGET CODE --> </b:if>

对于特定标签的pae,您的代码将是:

<b:if cond='data:blog.searchLabel == "ExampleLabel"'> <!-- HERE YOUR WIDGET CODE --> </b:if>

您的代码小部件代码仅在所有标签页面或特定标签页面时运行。

希望我会帮助你。 等待你的反馈。 谢谢 :)

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM