bottom-border date shows up even when no date is returned
-
I want the date for posts to show up only once per day, so I call it at the beginning of the loop like this:
<h2 class="date"><?php the_date();?></h2>
I also want a line to appear below the date, so I give the h2 date class this attribute:
border-bottom: 1px solid #000000;
Since the date function only returns once per day, the text only appears once. But that bottom border appears between every entry and looks totally pointless.
An example is up at the top of my working template:
https://jacobgrier.com/wpIf anyone knows how to solve this problem, I would appreciate it.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘bottom-border date shows up even when no date is returned’ is closed to new replies.