Hello, I would like to know how to add timing to the “Trending Now” News flash
Please take a look at exactly what I mean:
http://www.asulaikit.com/images/newswithtime.png
How can this be done
Thanks
t2e
Hi,
You have to add also the date function in td_module_trending_now.php file – http://screencast.com/t/s30uqZRPeC as this block was not designed to display date and time.
<?php echo $this->get_date();?>
Now you need to use some css code to customize date for this block, try this code in Theme Panel > Custom Css – http://screencast.com/t/iii9E6Dy
.td-trending-now-display-area .td_module_trending_now .entry-title {
display: inline-block;
}
.td-trending-now-display-area .td_module_trending_now .td-post-date {
top: 0;
font-size: 12px;
}
Thanks!
-
This reply was modified 10 years by
Alin [tagDiv].
Thanks for your responce.
I have modefied the:
td_module_trending_now.php file
and added the custom CSS to Theme Panel > Custom Css
The result is fine, but I am still not getting the hour the news was released.
I need it to be something like this:
—————————————————————————————————————-
How To Use Basic Design Principles To Decorate Your Home October 5, 2015 2pm
—————————————————————————————————————-
I want also to have the hour in which the news was released. the 2pm should be bold and with a color red.
Making the hour of the release stand out.
Please help.
Thanks.
t2e
-
This reply was modified 10 years by
t2e.
Hi,
You can set the date format(add also time) from the WP Settings – http://screencast.com/t/mmBEBVIWB7pk and use custom css to color date – http://screencast.com/t/c0Cd3VVvp You cannot target only the time.
Also if you want to have there only the time you could use get_the_time function instead of get_date – https://codex.wordpress.org/Function_Reference/get_the_time
Thanks!
