floating stars

Support Area Forums United floating stars

Viewing 2 posts - 1 through 2 (of 2 total)
URL to the page in question:
  • Author
    Posts
  • #12147
    Curtis Mills
    Participant

    Is it possible to change the color on the floating stars?

    #12148
    Bill Robbins
    Moderator

    Curtis,

    Good question. I don’t have a built in way set to change the color of the stars in the background. But you could always edit them directly. Here’s how:

    1. Go to the Plugins section and select Add New.
    2. Search for the WP Editor plugin and install/activate it.
    3. Next go to the Appearance section and select Theme Editor.
    4. On the right hand side, click on the js folder and then edit the particles.js file inside it.
    5. Find this section (it starts on line 40):
      
      		g.addColorStop(0.0, 'rgba(255,255,255,'+newo+')');
      		g.addColorStop(this.stop, 'rgba(255,227,168,'+(newo*.2)+')');
      		g.addColorStop(1.0, 'rgba(255,227,168,0)');
      
    6. Where it says rgba, that’s actually the start of a color code. There are three in there that control the start and ending color of the stars. You can replace the 255,255,255 and the 255,227,168 and the 255,227,168 with the rbg colors you’d like to use. There is a Color Selection Tool that can help you find those color codes.
    7. Once you make those changes save them and see if you like the results.

    Perhaps at some point in time we’ll be able to build in an option that lets you choose a color. At the moment, the built in color selector that’s part of WordPress does not support these types of colors.

    If I can help at all, let me know,
    Bill

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘floating stars’ is closed to new replies.