himanshu Dhingra
asked 10 years ago

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;
}

1 Answers
DominicStaff
answered 10 years ago

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 !

himanshu Dhingra
replied 10 years ago

Yes sir it worked, but it is only showing date, not the time.

himanshu Dhingra
replied 10 years ago

Thank you sir, all worked fine…

himanshu Dhingra
replied 10 years ago

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?

Dominic Staff
replied 10 years ago

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 !

Powered by DW Question & Answer Pro