Mai Rating [mai_rating] Shortcode

Add a star rating anywhere in your content. Works great in the Custom Content field in Mai Post Grid or the Customizer, or in the description of Mai Favorites.

Here is an overview of how to use shortcodes.

value

The rating value. Accepts any number up to or equal the total amount of available, including halves like 3.5. Defaults to 5.

Examples:

[mai_rating value="4"]
[mai_rating value="3.5"]

total

The total amount of stars available. Defaults to 5.

Example:

[mai_rating value="3" total="4"]

color

Accepts a CSS color value (red, blue, or a hex, rgb, rgba, etc. value) or color by name (primary, secondary, link, alt, etc.). Default is gold.

Examples:

[mai_rating value="4" color="#ffe34d"]

align

Accepts left, center(default), right, start, end.

Example:

[mai_rating value="4" align="left"]

size

The size parameter allows you to set the size of the icons. Accepts any CSS unit value (px/rem/em/vw/etc). If the size parameter value is only a number, then pixels (px) will be used.

Examples:

[mai_rating value="5" size="1.25em"]
[mai_rating value="5" size="16px"]
[mai_rating value="5" size="15"]
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us