current date and time
-
wrote on May 22, 2016, 10:42 AM last edited by
Hey Armin,
is it possible to add the current time and date to the footer-site? i've searched the web and just found the usual php snippets, like echo date('Y-m-d H:i:s,mktime(12,13,14,2,28,2006));. Is there another option? I can't get it to work :/ Regards.
-
Global Moderatorwrote on May 23, 2016, 10:10 AM last edited by arminunruh May 23, 2016, 6:11 AM
Hmmm, a good way to do this is to use shortcodes but I deactivated shortcodes for lay theme for now.
You can also use javascript:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date
You could create a textelement in the footer, give it a class and then use the "newpageshown" event to add the date string into that element.
http://laytheme.com/documentation.html#newpage-events
I also code custom websites or custom Lay features.
💿 Email me here: 💿
info@laytheme.com
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it