lindaline

How to Add a Snowfall Effect to Your XenForo 2.3.4 Forum

Spread some festive cheer by adding a snowfall effect to your XenForo forum! This guide will walk you through the steps to integrate a simple snowfall script into your forum.


Step 1: Create the JavaScript File​

  1. Create a new JavaScript file named <span>snowfall.js</span>.
  2. Add the following code to the file:

JAVASCRIPT:
You must log in to view
(59 lines)
  1. Save the file and upload it to the <span>js/snowfall/</span> directory of your XenForo installation. If the <span>snowfall</span> folder does not exist, create it.

Step 2: Add the Script to XenForo​

  1. Log in to your XenForo Admin Control Panel.
  2. Navigate to Appearance > Templates > PAGE_CONTAINER.
  3. Locate the </body> tag at the bottom of the template.
  4. Add the following line just before the </body> tag:

JAVASCRIPT:
You must log in to view
(1 lines)

Save the template.

Step 3: Optional Styling​

To adjust the opacity of the snowfall effect, you can add some CSS to your XenForo style:

  1. Go to Appearance > Styles > Templates > Extra.less.
  2. Add the following CSS:

CSS:
You must log in to view
(3 lines)

Save the changes.

Step 4: Test the Effect​

Visit your forum in a browser and refresh the page. You should see a beautiful snowfall effect on your forum.


Notes​

  • The script is lightweight and runs efficiently on most modern browsers.
  • You can adjust the <span>maxParticles</span> value in the script to control the number of snowflakes.
Enjoy your festive forum and happy holidays!
 
Good morning, i did same but not working,

please find attached and chack for step 1
also i copy the file to same directory
1735103985415.webp
 

Attachments

Similar threads Most view View more
Back
Top Bottom