current date
-
how to display current date and time to the left of header logo? thanx
The blog I need help with is: (visible only to logged in users)
-
Hi,
I can see you’re using the Canard theme, and unfortunately there isn’t a ‘click and drag’ way of doing this.
To add the date and time right next to the header, you’d need to update one of the Cascading Style Sheet files called header.php, which can be accessed via the CSS section of the Customize screen (you need a paid subscription to access this).
If you were to place this code before the code for the header logo, then this should display the date and time in the format 25 February 2018 23:59:
<?php echo date('j F Y H:i'); ?>There’s more information about how to format the date/time here.
I hope this helps!
- The topic ‘current date’ is closed to new replies.