Date on the top header – Last update solution

Posted in: Newspaper
Post count: 81

Hallo,
instead of the top left time reference, I would rather replace it with the last article update date,
something like this

Last update: april 15, 2015 – 10.41

Please any idea? Just a few plugin found but they are out of date for long time.

Thanks – Regards

Post count: 81

Found this plugin:
https://wordpress.org/plugins/site-last-modified/

This shortcode does right what I need:

<?php site_last_modified( “Y-m-d H:i:s” );?>

Please any advice, I would just replace the Top Menu(black one) date with it (site last modified). Howto ?

I attempted so far with some mods, but they were not successfull.
Thanks for the attention.
Regards

Post count: 7909

Hi,

Please try to replace here: http://screencast.com/t/wfPd9ArE

Thanks!

Post count: 81

Hallo Alin, great!

To whom it may concerns:

<div class=”span9″>

<div class=”td_data_time”>Aggiornato a:
<?php site_last_modified( ‘l, j F Y – H:i’) ?> </div>

Now I have this italian sequence:

Aggiornato a: martedì, 14 aprile 2015 – 10:41

I would be really happy if I could color the time reference (10:41) in Red.

Thanks for your precious attention.
Regards

Post count: 6600

Hi,

Send you site’s url so we can inspect it and provide a custom css for it.

Thanks

Post count: 81

Hallo Lucian,
thanks once again.
the url is http://lesuberante.it

I added this code in menu-top.php

<div class=”span9″>

<div class=”td_data_time”>Aggiornato a <?php site_last_modified( ‘ l,j F Y ‘) ?> </div> <div class=”td_data_time2″> ore <?php site_last_modified( ‘ – H:i’)?> </div>

As you can see hour:sec is displayed below the line. Only hour/min reference must be in red. I was unable to put them together in sequence so far.

Thanks Lucian

Post count: 81

Hi Lucian,
solved adding display:inline style.

Thanks anyway.
Regards

Viewing 7 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic.