倒计时插件——Easy Timer

[countdown date=2020/07/07-00:00:00]

距离2020年高考还有:

[timer]

[after]高考加油! [/countdown]

任务

有插件能够提供倒计时,其实主要应用是针对电商的营销手段。

我想用此来对生日进行倒计时,放在页面中。

下载

搜索countdown,最终选择了easy-timer

使用

没有看到直接添加的部件,打开文档查看使用方法。

也是通过shortcode中插入代码实现的。

demo

[countdown date=2021/01/01]
Just [timer] until 2021!
[after]Happy New Year 2021![/countdown]

但它跑到了最旁边,想让它居中显示。

修正

虽然学习过一些HTML的语句:HTML专栏 蓝鲸实践作业——前端基础,但还不知道如何在wordpress编辑器中使用。

以为需要在页面文件中修改,但没有快速找到页面文件在哪,还是有些畏惧的。

可能这个问题太小儿科了,网上甚至教程寥寥,我只好怀着试试看的心理写上html的标签(html样式教程

[countdown date=2021/01/01]
Just [timer] until 2021!
[after]Happy New Year 2021![/countdown]

成功了

现在明白了,可以直接用shortcode实现页面的编辑工作!

[counter date=-0 origin=last-visit][after]
你在本界面停留了 [timer]
[/counter]

本网站已建立:

[countup date=2020/04/14]
[timer]
[/countup]

Leave a comment

Your email address will not be published. Required fields are marked *