How to style your WISP panel

WISP provides you with the ability to add your own style sheets to your panel. This can range from changing colors to even keyframe animations from CSS!

Accessing the CSS injector

Go to the Admin Panel , then navigate to 1) Administration -> 2) Settings > 3) CSS Injector

Untitled

How to find CSS elements on the panel

To find the elements on the game panel, you're going to need to use Inspect Element. Pretty much every browser comes equipped with it (sometimes aliased as Inspect).

You can access this tool by Right-Clicking anywhere on the panel and clicking on Inspect Element.

https://prod-files-secure.s3.us-west-2.amazonaws.com/e91c46cf-30dd-413e-b5ab-464fbeb4f124/994925a0-b662-4043-97f4-1af6e6815bb7/inspect_context_nav.png

Now you're going to want to find out which elements are on which parts of the site. The inspector makes this super easy by simply clicking the little Cursor icon.

This handy tool is the Element Picker. You can now hover over each element, and it'll tell you which one it is. Clicking will navigate to the specific code in your Inspector.

https://prod-files-secure.s3.us-west-2.amazonaws.com/e91c46cf-30dd-413e-b5ab-464fbeb4f124/a4df0fd7-7925-44ef-a3fa-6488eb2815aa/inspect_selector.png

Conclusion

That pretty much concludes how to operate the CSS injector. If you need more information on using CSS, you'll need to learn that yourself on a site like w3schools. However, we'll give you a little snippet of how some CSS looks and how it affects the panel in the image below.

Adding code to the CSS injector and then saving it to apply the changes.

Adding code to the CSS injector and then saving it to apply the changes.

Results of the changed CSS (enlarge the image to see the background better)

Results of the changed CSS (enlarge the image to see the background better)


How to script the front-end of your panel using JS

JavaScript is a powerful front-end scripting language that allows you to do anything to the front-end pretty much. (Please note to always escape any user inputted strings such as usernames if you make a script for such a thing!)

We cannot tell you about using this injector as the uses are very cast. We can give a couple of use cases, but that's about it.

Accessing the JS Injector

Go to the Admin Panel , then navigate to 1) Administration -> 2) Settings > 3) JS Injector

Untitled

Example: Using JS to shape the front-end (the example is using legacy admin panel)

You can use the JS injector to change the front-end elements, such as removing/adding a class to a <div> block. In the example below, we will go through finding the element and removing a specific attribute that is hard-coded into the panels' HTML.

Just like in the CSS injector segment, we will use the Inspector to locate the specific element we want to change. 1) Activate element picker > 2) Select the element > 3) Find a value to target