Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: How to hide <hr> if there are no articles ... ?
Bloke … sorry. The <hr> in the article tag was a leftover from the first suggestion (Uli’s) … it’s gone now. And your last snippet is elegant too … :)
After some tweaking:
<txp:if_first_article>
<h3>Ingekomen berichten</h3>
</txp:if_first_article>
<div class="article important">
<h1 class="entry-title"><txp:title /></h1>
<txp:body />
</div>
<txp:if_last_article>
<hr>
</txp:if_last_article>
Last edited by RedFox (2015-04-09 12:30:46)
Offline