In the text widget, it is possible to display labels that is desired. By cons, in articles, this "option" does not exist. Here little trick that can accomplish this feat.
Follow the guide.
Step 1: Find the code
Go to the HTML editor of your blog, expand widget templates and find the following lines
The original code:
\u0026lt; span class = 'post-labels'>
\u0026lt;b:if cond='data:post.labels'>
\u0026lt;data:postLabelsLabel/>
\u0026lt;b:loop values='data:post.labels' var='label'> \u0026lt;a expr: href = 'data: label.url' , rel = 'tag'> \u0026lt;data:label.name/> \u0026lt;/ a> \u0026lt;b: if cond = 'data: label.isLast = "! true "'>,\u0026lt;/ b: if>
\u0026lt;/ b: loop>
\u0026lt;/ b: if>
\u0026lt;/ span>
Step 2: Modify the code
Replace the original code by it.
The new code:
\u0026lt;span class='post-labels'>
\u0026lt;b:if cond='data:post.labels'>
\u0026lt;data:postLabelsLabel/>
\u0026lt;b:loop values='data:post.labels' var='label'>
\u0026lt;b: if cond = & # 39; data: label.name! = " " Label 1 '>
\u0026lt;b:if cond='data:label.name != " DRAGONFLY 2 "'>
\u0026lt;b: if cond = 'data : label.name = " " Dragonflies 3 ! '>
\u0026lt;b: if cond =' data: label.name = " DRAGONFLY 4 " '>
\u0026lt;a expr:href='data:label.url' rel='tag'> \u0026lt;data: label. name> \u0026lt;/ a> \u0026lt;b: if cond = 'data: label.isLast! = " true "'>,\u0026lt;/ b: if>
\u0026lt;/ b: if>
\u0026lt;/ b: if>
\u0026lt;/ b: if>
\u0026lt;/ b: if>
\u0026lt;/ b: loop>
\u0026lt;/ b: if>
\u0026lt;/ span>
Explanations:
• tags
\u0026lt;b:if cond=...> prevent the posting. • Replace WORDING 1, 2 WORDING, WORDING 3, 4 WORDING denominated by your blog that you do not want to display.
• You can duplicate as many times as necessary tags
\u0026lt;b:if cond=...> provided you remember to close this way: \u0026lt;/ b: if>
0 comments:
Post a Comment