Conditional Statement for Showing Comments
-
I’m building my own theme from scratch but I need help! I have comments displaying not under the post, but on an aside floated right. The actual form is under the post. Comments work and look the way I want when there are comments, when there are no comments it looks very empty.
In a perfect world, I would like the widget area to show up when there are no comments and when there are comments then obviously the widget area goes away replaced with the comments.
The html:
<aside class="col span-04 sidebar comments"> <div class="sidebar-frame"> <div class="widget-area"> <h3>Comments</h3> <?php comments_template(); ?> </div> </div> </aside>
FYI: all of this on single.php and it’s all viewable on my site: SaturdaythruSunday.com
Viewing 12 replies - 1 through 12 (of 12 total)
Viewing 12 replies - 1 through 12 (of 12 total)
- The topic ‘Conditional Statement for Showing Comments’ is closed to new replies.