开发者 | ailyin |
---|---|
更新时间 | 2020年12月23日 17:02 |
PHP版本: | 7.2 及以上 |
WordPress版本: | 5.6 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
snowfall_main_tag_action
which adds necessary blocks and queues necessary scripts. This is why this set up is easier.
To make it work add the following code right after <body>
opening tag:
<?php do_action('snowfall_main_tag_action'); ?>
When this action will be added, and the plugin will be enabled you will see the snowfall effect on your site.
2. Manual set up
As mentioned above manual set up is a bit harder than set up through Wordpress actions.
To set up plugin manually you need to:
<div id="some-unique-id"></div>
right after <body>
opening tag.
NOTE: the id
attribute for this block should be unique.new Snowfall("some-unique-id");
NOTE: some-unique-id
from this code snippet should be the same as id
attribute from the block you created above.snowfall
script (snowfall
- is a script's handle for more info see wp_enqueue_script)In short - yes. To customize the snowfall effect(increase/decrease number of snowflakes, increase/decrease it's size/color etc) you have 2 options:
kupnoh25@gmail.com
with Subject Snowfall customization
and we would discuss further details.