Site logo

Archived topic

Particles background example

6 replies · Started by Christophe on December 14, 2016

Viewing posts 1–7 of 7

The text and content are in the page header add-on, but the actual particles container is in the wp_footer hook with this CSS added:

#particles-js {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100%;
    left: 0;
}

That's what makes it full width and height.

Hope this helps :)

Thanks for the answer Tom.

You do it without the plugin?

I try it.

Hi Tom,

I try it, but don't know how you do this.
There are several files,
Add you the js files with this Wp function in the wp_footer hook?
wp_enqueue_script( 'script', plugin_dir_url( __FILE__ ) . '/js/script.js', array( 'jquery' ), '1.0.0', true );
And where adding the json-file?

Have you a small step-by-step tutorial how do this?

I know there is a plugin for that, but i will learn it without the plugin so i understand how it works.

Hope you can help me.

Christophe

Ok, i try plan B and try it again with the 'particles background' plugin.
Adding this content in the Header option:

<div>
<div>
Dit is een titel
<a href="#">test</a>
</div>
</div>

Set fullscreen.

Adding a z-index, but the particles are always above the content.
I will try your solution how you do this without plugin.

Christophe

Hi Tom,

You're right.
I try follow this steps.

Christophe

This archived topic is closed to new replies.