$49

Star Ratings

Documentation  •  Changelog

Documentation

Disable JS or CSS

Star Ratings includes a small amount of CSS and JavaScript to work its magic. However, if your setup requires that the plugin does not instantiate its JS and/or CSS in the usual fashion, they can be easily disabled.

Simply add this code to the top of your Twig template:

{% do craft.starRatings.disable(['css','js']) %}

The example above will disable both the CSS and JS included with the plugin. If you'd like to disable only one or the other, it can be passed directly as a string (the array format is optional).

{% do craft.starRatings.disable('js') %}

Make sure to include this code at the top of your Twig template, before any stars are rendered.