开发者 | shawfactor |
---|---|
更新时间 | 2022年8月4日 12:46 |
捐献地址: | 去捐款 |
PHP版本: | 5.0 及以上 |
WordPress版本: | 6.0 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
This plugin enables you to have a different design for you site depending on trhe time or date! For example a red, green, and gold design on Christmas day, or a firework background on the fourth of July. The only limit is your imagination!
LH CSS Dates and Times automatically adds dynamic Date & Time classes to your HTML body element via javascript.
So you can add CSS selectors based on those classes to override and modify your site design. For example sunrise background in the morninging? Just add the class to your CSS stylesheet. .cssdt-evening { background-image: src('/wp-content/uploads/2017/10/sunrise.jpg'); }
Two reasons!
Because they are added by javascript on the domcontentloaded event. This still means they can be used for styling purposes though.
You can use dev tools (or equivalents in other browsers) to inspect the the DOM elements and you will see the classes.
Go to to the plugin donation page to see a live (very trivial) example.
LH CSS Dates and Times, and all https://lhero.org plugins are made to WordPress standards. Therefore they should work with all well coded plugins and themes. However not all plugins and themes are well coded (and this includes many popular ones). If something does not work properly, firstly deactivate ALL other plugins and switch to one of the themes that come with core, e.g. twentyfifteen, twentysixteen etc. If the problem persists pleasse leave a post in the support forum: https://wordpress.org/support/plugin/lh-css-dates-and-times/ . I look there regularly and resolve most queries.
Please contact me for custom work and enhancements here: https://shawfactor.com/contact/