Label as header in Category Page Blogger

后端 未结 1 1383
野性不改
野性不改 2021-01-27 03:36

I have a website in which I can show posts with all the same labels. Is there a way to make the label as the header when showing all the posts with the same label.
For exa

相关标签:
1条回答
  • 2021-01-27 04:21

    Just replace //label header here plz with <data:blog.searchLabel/>, this data Tag returns the current filtered label.

    It cloud look, like this:

      ...
      <div class='status-msg-wrap'>
        <div class='status-msg-body'>
          ...
          <span style="text-transform: capitalize;"><data:blog.searchLabel/></span>
         ...
        </div>
      <div class='status-msg-border'>
      <div class='status-msg-bg'>
        <div class='status-msg-hidden'><data:navMessage/></div>
      </div>
    </div>
    ...
    

    The wrapping span is set only so that we can set the css property text-transform to capitalize, since I Like my headers capitalized.

    0 讨论(0)
提交回复
热议问题