• How are we supposed to use this field in the settings?: “Add to matching CSS”

    Is it possible to put particles in arbitrary block elements by somehow referencing the id of the element? That would be great!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Ryan Novotny

    (@ryannovotny)

    yeah its that, you can enter an abritrary CSS to target, implementing document.querySelectorAll(). So you can add ‘#some-id’ or ‘.some-class’ or even commas etc

    Thread Starter Fotis

    (@kokkoras)

    I have a div with id=”main-content”. There exist other blocks inside it. I am adding “#main-content” (without quotes) inside this edit box I am mentioning in the title. Nothing happens. Any idea?

    Thread Starter Fotis

    (@kokkoras)

    Hold on! It works!! It seems the block must be empty…. (or just not fully covered??)

    Thread Starter Fotis

    (@kokkoras)

    Your div (with the paragraph and the canvas element) is added OK inside my block element. BUT how can I have my content over your canvas? It seems your blocks push mine lower down the page. What am I missing? Is it a CSS issue? Any hint or example will be helpful.

    Thread Starter Fotis

    (@kokkoras)

    It seems your blocks must be before mine… I finally managed to have particles in the background of certain blocks, with the Divi theme.

    The final issue I have is that it is not clear what the JSON config file should contain. There is no JSON file in the files of the plugin to get an idea! I had to change css-particle-target.js but changes will be lost on update. Any help with this?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘“Add to matching CSS”’ is closed to new replies.