Setting a Star Rating for WordPress Pages

Stellar is a star rating plugin for WordPress. This plugin can create and save ratings for each WordPress entry, whether it is a Post, Page or Product. Flexible settings make it possible to create a rating of any capacity 3 stars, 5 stars, 10 stars, and even 12 stars. And of course, choose any icon from the huge library of predefined icons or even upload your own SVG icon for rating.

Installing a Star Rating for WordPress

To install the plugin, read the article Installing WordPress Plugin. Installing the plugin takes only a few seconds.

To open the plugin settings slick Settings below plugin name on the plugins page

Stellar on the plugins page
Stellar on the plugins page

or in the WordPress Sidebar menu go to Stellar

Stellar Star Rating for WordPress in the WordPress sidebar
Stellar in the WordPress sidebar

In the plugin settings, there are several tabs responsible for various groups of plugin settings.

General settings

Stellar already has initial settings allowing you to use it without additional configuration. But you can change any default settings so that the plugin better suits your WordPress site or theme.

Post Types

Select the post types, including custom post types, where you need to add the rating display. The available types are in the drop-down list.

Position

Position selector sets wherein the Stellar will be displayed. You can choose one option:

  • Before title
  • After title
  • Before content
  • After content (Default)
  • Shortcode [stellar]

Rating points

This setting sets how many points (rating icons) will be used on your site. You can choose from 1 to 12, and you can also change your choice in the future – all existing ratings will be recalculated for the new score system.

Stellar Icon

This setting sets the icon for the rating. Using IconsPicker, you can select one and 2000+ icons from a predefined library. To do this, click on the button Icon Library.

Stellar Icon picker
Stellar Icon picker

Or you can download your own SVG icon. To do this, click Upload SVG and upload the icon using the standard Media Library interface.

Icon size

This setting sets the size of the rating icons. You can select a value between 10px and 60px.

Notes

We recommend that you do not make the icons too small; this can complicate the interaction with the plugin on your mobile phone and lower the position of the page in the search results

Icon space

Adjusting the Icon space increases the indentation between the icons. You can select any number in the range from 0 to 50px

Default Icon Color

Icon color in Normal state

Active icon color

Icon color in Active state

Hover icon color

Icon color in Hover state

Layout

The layout setting is needed to control the position of the Stellar icons block relative to the container. And also to establish the arrangement of the button block relative to the description block.

Stellar Star Rating for WordPress – Layouts
Layouts

Description

This is the section of the standard WordPress editor where you can write description text. The description is very important that your users know what to do.

Results

On the results tab, you can configure everything with regard to storing the display and processing of rating results on the front-end and back-end.

Current user rating

The option allows displaying the latest rating of the current visitor on the page.

  • Hide user voting – hides the current user’s rating
  • Show as stars – display the current user rating in stars
The current user rating displays as stars
  • Show as text – display the current user rating with custom text.
The current user rating displays after the custom test

Results on front-end

Shows or hides the overall page rank on the frontend. The rating that this setting display is shown in X.XX format, as a number in two decimal places. You can choose between:

Results text

The phrase or line of text to be displayed next to the rating scale.

  • Hide results
  • Before rating icons
  • After rating icons

Total voters on front-end

The option allow to hide/display the total number of voters on the current page.

The voters number can be displayed in different positions, with custom text:

  • Hide votes count
  • Before rating icons
  • After rating icons

Valuation on front-end

This setting displays a hint with the numbers of the user’s current vote. Data is displayed in the format rating/points. You can choose between:

  • Hide valuation
  • Show as tooltip
  • Show before rating icons
  • Show after rating icons

Rounding for icons

The setting allows you to enable/disable rounding of rating values to painting icons partially or completely.

  • Up – rounding the value up
  • Do not round – do not use rounding and get partially painted stars
  • Down – rounding the value down

Display results before voting

The toggle to enable/disable voting results display before a new user votes.

Session control

The toggle to enable/disable the track sessions. If the option is enabled, it allows users to change their rating only during one session.

Voting limit

This sets the limit of votes from one IP address. You can select any number in the range from 1 to 10

Limit exceeded message

A field that allows you to change the message text when the user exceeds the vote limit.

Results in the admin area

This parameter defines the format for displaying the results in the admin panel. Results will be displayed in the posts/pages list. You can choose between:

  • Amount
  • Amount/Total
Results in the admin area
Results in the admin area

Reset rating

The data reset button resets all rating data for all posts. Use this button after the site debugging is completed to reset the debug rating data ​​to 0.

Please note that the Data reset cannot be undone.

Rich Snippet

This setting adds schema markup to the page HTML code. Schema markup allows you to display page rating data in Google search results.

Example of the Google search results
Example of the Google search results

Your data will be converted to a 5-star rating system regardless of what type of rating you choose in the plugin settings.

SEO microdata

The option allows you to enable the schema markup by default or add the Advanced Schema Markup using the JSON+LD structure.

JSON+LD Markup

Add a markup structure depending on the data types you want to use. Read more about it and find examples in the article https://developers.google.com/search/reference/overview

Once you finish setting up the markup, you can check it for correctness using the tool https://search.google.com/structured-data/testing-tool

Shortcode

New shortcode support is available since version 2.1. The shortcode allows you to display a list of top-rated posts.

[stellar top="10" for="page" cols="4"]

Where the parameters:

  • top – number of posts/pages displayed. This parameter is required for the shortcode. The default value is “4”.
  • for – the type of posts to be displayed in the list. This parameter is required for the shortcode. Note: the specified type must match the post type in WordPress.
  • cols – number of posts list columns, the parameter is not required. Can be set from 1 to 12 number of columns. The default value is “1”.

Posts display style settings in the top-rated list

Gutter

Specify the gutter between the elements of the post block in the list.

Post image

The toggle to enable/disable the display of the images in the posts list. When the toggle is enabled, there are new options that are available:

  • Image size – select the post image size from the available options: Thumbnail, Medium, Large, Full
  • Equal image – allows you to set the same height for all post images.

Post title

The toggle to enable/disable the display of the title in the posts list. Here you can select one of the available Post title tags from the list. Depending on the selected tag, the text display style will be changed. These tags also help to make your page more SEO friendly.

Post excerpt

The toggle to enable/disable the display of the post excerpt on the list.

Post rating

The toggle to enable/disable the display of the post rating on the top-rated list. Here you can select Rating icon size.

Save Changes

Do not forget to click Save Changes after changing the Star Rating for WordPress settings. After clicking this button, the settings will be saved and applied to all pages of the website.

Hosting for WordPress

Fast and reliable hosting is significant for any WordPress site. We recommend all our customers use SiteGround WordPress Hosting. Many unique settings and features make this hosting the number 1 for WordPress: Free Website Transfer, Staging Tools, Free SSL, CDN, and much more for 3.95/mo.

Was this article helpful to you?