Schema Pro provides a shortcode following to display ratings anywhere you want. This can be used with page builders/sidebar widgets etc.
[wp_schema_pro_rating_shortcode]
Take a look at the image below to see how the ratings are seen.
You can add ratings using your theme actions also.
Here is an example you can refer to:
Example: Add the following code to your functions.php file.
Note: Here astra_header_after
is an action in the Astra theme. You can replace it with an action from the theme you are using on your website.
add_action( 'astra_header_after', 'add_my_schema_rating' ); function add_my_schema_rating() { echo BSF_AIOSRS_Pro_Markup::get_instance()->rating_markup(); }