在 blogger/blogspot 中仅在标签搜索页面上显示小部件
Display widget only on label search page in blogger/blogspot
我只想在标签页面上显示 Blogger 小部件。我在 Google 上搜索,但没有找到任何方法。怎么做?
要在所有标签页面中显示小部件,请使用此条件
<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>
如果所有标签页或特定标签页,您的代码小部件代码仅 运行。
希望能帮到你。
等待你的反馈。
谢谢:)
我只想在标签页面上显示 Blogger 小部件。我在 Google 上搜索,但没有找到任何方法。怎么做?
要在所有标签页面中显示小部件,请使用此条件
<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>
如果所有标签页或特定标签页,您的代码小部件代码仅 运行。
希望能帮到你。 等待你的反馈。 谢谢:)