ProvenExpert

How do I integrate the ProvenExpert star rich snippet into my WordPress website?

This example shows how the rich snippet can be inserted in the footer of a WordPress installation. Alternatively, it can also be added in the sidebar or in the content.

Updated on February 12, 20263 min. read

Generate JavaScript code for the Google star rich snippet

  • To generate the rich snippet code in your ProvenExpert user account, go to Reputation Boost > Google Stars in the navigation
  • Go to the section "Displaying the rich snippet on your website" and select the desired display of the rich snippet by clicking the check mark in the corresponding circle:

visual representations of the rich snippet

  • Click "View script" in the "JavaScript for displaying Google star ratings" section.

Script button

  • You can then copy the displayed code accordingly. It may look like this:

Example of a rich snippet code

1. Log into your backend of your WordPress page.

2. Go to 'Appearance' in the left menu and select the sub-item 'Editor' or 'Theme file Editor' (the name may vary depending on the theme used):

WordPress backend menu bar 3. Scroll down to the footer of your page and move the mouse pointer over the area so that the area is highlighted in color. Then click on it.

footer element in WordPress page 4. Move the mouse pointer over the center of the area and add a block there by clicking on the plus icon "Add block". Plus sign for adding elements 5. Search for the type 'HTML' and then click on 'Custom HTML'.

Footer option to add a customized HTML code 6. Copy the JavaScript code from above and paste it into the field that says 'Write something in HTML...'. To see if it works, you can click on 'Preview'. Element options 7. Save your changes by clicking on 'Save' in the top right corner. Confirm by clicking 'Save' again. Save WordPress page

  • To test whether the rich snippet has been correctly integrated, use Google's testing tool. More information here: How do I determine whether the Google stars are correctly integrated on the website?

Was this article helpful?