开发者 | PCFDev |
---|---|
更新时间 | 2015年10月6日 16:59 |
捐献地址: | 去捐款 |
PHP版本: | 4.0 及以上 |
WordPress版本: | 4.3 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
[pcf_xmas_countdown]
to output the countdown.
The countdown will output in days by default (e.g '105 days until Christmas!').
Changing output type
The shortcode can be given a 'type' attribute, like so:
[pcf_xmas_countdown type="days|weeks|sleeps"]
This enables you to change the output type.
There are 3 types to choose from:
x
weeks and y
days until Christmas!
Styling the output
Styling the output is an advanced setting, that involves writing custom CSS.
The shortcode can be given an 'id' attribute, which can then be used to style the output using CSS.
For example,
[pcf_xmas_countdown id="my-id"]
would output in HTML as
...
You can then add custom CSS through Appearance > Editor
. If your theme supports custom CSS, you may be able to add your styles in Theme Options. If there is a custom css file in Editor, it is advised to use that for custom styles.
Here is an example of some custom styles:
my-id{
color: red;
font-size: 16px;
text-decoration: underline;
}
This will set the output to be red, underlined, and to have a font size of 16px.
Yes! You can add an ID using the id id
attribute. See 'Description' for more information.
Other than the built in type
attributes, no. However, with the premium version of our plugin you can custom this text.
event
!".