Insight: How To Display Current Date And Time On WordPress Header
This tutorial post is useful for you if you are looking for the easy way to display the current date or time on WordPress. Displaying date and time is effective and efficient in news magazines, travel magazines and sports magazines.
How To Display Current Date And Time On WordPress Header
Let’s check out the multiple way to display current date and time on WordPress header.
Set up current Date and Time Widget plugin for WordPress:
You need to install Date and Time Widget plugin and activate it. After installing the plugin, Go to Appearance -> Widget. You will see the widget called Date and Time. After that, drag it, place it and save it under the Header Widget.
Now, Go to Header Widget area and configure the settings like color, date and time format, font family etc. Save it and you will see the result in your website.
Display current Date And Time on WordPress header using manual method.
This method is also an easy method and mostly preferred by the users who loves to play with code rather than plugins. Go to the Appearance -> Editor and select the theme where you want to display the current time and date.
Select the header.php theme file of the desired theme. Paste the below code inside the </head>section.
Now, You are done with the process to setup time and date on WordPress header. You can see the result in your WordPress theme.