Site logo

Archived topic

Where did you get this background

5 replies · Started by Max on October 1, 2017

Viewing posts 1–6 of 6

Hey Tom

Where did you get the background that you use on this page?

https://tomusborne.com/

Kind Regards

Max

Thanks Leo. Have a good week at work.

No problem!

Hi I followed this tutorial including using the plugin but it does not work correctly.

I am using sections.

My first section has already has a background.

I want to use the particle background on the second section.

I do not want to use the plugin offered for download on on the website you provided a link for.

I want to run the JS for the particle background in my own functionality plugin.

So. I want to know:

1. What snippet should I use to insert and run the particle JS in my functionality plugin. Including where to add unique CSS ID class

2. What else do I need to do to run the background just on the section section.

Thanks for your kind assistance.

Regards

Max
2.

Have you added particles.js to your site yet?

If not, you'll need to start with that:

function child_theme_js() {
    wp_enqueue_script( 'particles', get_stylesheet_directory_uri() . '/particles.js', array( 'jquery' ), '1.0', true );
}
add_action( 'wp_enqueue_scripts', 'child_theme_js' );
This archived topic is closed to new replies.