I’m happy to announce version 0.1 of the ALC Tuition Sliding Scale Plugin. This plugin, adapted from code written by ALC NYC parent @geva, allows anyone to place a sliding scale on their website! Here’s a working example:
Recommended tuition:
How it works
You can add a slider into any section of your site using the WordPress shortcode: [tuition_slider]. Yep that’s it, just slap that anywhere on your site and the above slider will appear!
There are some “parameters” you can set to control the size and value of the scale. Here’s an example of the shortcode with all it’s parameters set to their default values:
[tuition_slider min_fee="3700" max_fee="10000" low_income="50000" high_income="100000" max_income="120000" min_income="30000"]
See how that works? You add the setting name (e.g. “min_fee“) inside the brackets, after the word tuition_slider followed directly by an equals sign “=” and a number wrapped in “quotes”. Let’s go through each setting!
min_fee – Minimum tuition fee on your scale.
max_fee – Max tuition fee on your scale.
low_income – This the “low income” threshold that the minimum fee will apply to.
high_income – This is the “high income” threshold.
max_income – This is the maximum income to display on the scale.
min_income – The minimum income to display on the scale.
WARNING! If you set anything inside the quotes other than a number you’ll break it!
Next steps
If your site already has a beta version of the slider I would suggest replacing it, taking care to set everything correctly.
I’d like to add a way to customize the color of the bar and add special messages depending on where the slider goes.
Eventually I’ll work this into the school themes.
If you have any questions or comments please leave them below! (It’s 3am and I’m delirious from coding this!)
Where is the download?