No results found. Try again with different words?

Search must be at least 3 characters.

How to Add Ratings using Shortcode in Schema Pro?

Schema Pro provides a shortcode [wp_schema_pro_rating_shortcode] following to display rating anywhere you want.  This can be used with page builders/sidebar widgets etc.

Take a look at the image below to see how the ratings are seen.

Blog screenshot

You can add ratings using your theme actions also.
Here is an example you can refer to:

Example: Add the following code in 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();
Was this article helpful?
Did not find a solution? We are here to help you succeed.

Related Docs

Scroll to Top