Hello
I need to put a time and date stamp on each post.
How is this possible?
I am using the following css code:
.home .item-permalink {
display: none !important;
}
.home .comments-link {
display: none !important;
}
.sep {
display: none !important;
}
To resolve this issue, you can open the content.php file in the folder path “wp-content\themes\dw-wallpress”.
Find the line 52 then add the following code under 52.
<?php echo human_time_diff(get_the_time('U'), current_time('timestamp')) . ' ago'; ?>
– You can add the following code to remove the “Comment, Read more “:
.post .meta-bottom { display: none; }
Hope this helps !
Yes sir it worked, but it is only showing date, not the time.
Thank you sir, all worked fine…
Sir if i wanted date and time in the bottom meta, i inserted the given post in bottom meta, but because my css has meta bottom none, Is there any css code which only shows date and time in bottom and nothing else?
To resolve this issue, you can add the code under line 70 of the content.php file. Then add the following code to the style.css:
.sep {display: none; }
.item-permalink { display: none; }
.comments-link { display: none; }
Hope this helps !
Please login or Register to submit your answer