Home / Confetti / How to put confetti on any page

How to put confetti on any page

This article is for the premium edition of the plugin.

The Confetti block and the shortcode both put confetti on a page. Either one runs when the page loads unless you tell it otherwise.

Using the Confetti block

  1. Edit the page or post you want.
  2. Add the Confetti block.
  3. Pick the effect you want from Instance.
  4. Choose a Trigger Method. On page load fires as soon as the page opens, and When scrolled into view waits until the visitor reaches the block.
The Instances tab, where confetti effects are built and previewed

Using the shortcode

Add a Shortcode block and enter:

[confetti]

That runs your Default effect on page load. Three attributes change what it does:

Attribute Default What it does
instance default Which saved effect to run, by its ID
onload true Set to false to load the scripts without running the confetti
inview false Set to true to fire when the visitor scrolls to that spot

So a saved effect that fires partway down a long page looks like this:

[confetti instance="my-effect" inview="true"]

The Usage tab under Settings → Confetti has a copy button for the shortcode, which saves typing the instance ID by hand.

Firing it on a click instead

To fire confetti when someone clicks a button or link rather than on page load, give the element a CSS class. How to trigger the confetti effect on click covers it.

Can’t find the answer to your issue? Submit a ticket