Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Gemini Labs

    (@geminilabs)

    You are somehow preventing the Site Reviews javascript tags from loading. In fact, it looks like your theme is not printing any scripts in the footer. Please make sure to put wp_footer(); immediately before the </body> tag of your theme template (or figure out what it preventing scripts from loading on your website):
    https://codex.ww.wp.xz.cn/Function_Reference/wp_footer

    Once you have fixed that, you can use the following link to test the schema: https://search.google.com/structured-data/testing-tool

    • This reply was modified 7 years, 10 months ago by Gemini Labs.
    Thread Starter purplecoder

    (@purplecoder)

    Thank you so much – it’s solved 🙂

    Could you please help me understand why suddenly the “select a rating” coming as a dropdown – it used to be a star rating selector earlier.

    Thanks again.

    Plugin Author Gemini Labs

    (@geminilabs)

    Again, you are somehow preventing the Site Reviews javascript file from loading.

    The plugin loads the javascript file in the footer by default, so either you are not using wp_footer() correctly in your theme, or you have some kind of plugin or custom function in your functions.php files that is modifying the scripts that WordPress is enqueuing.

    • This reply was modified 7 years, 10 months ago by Gemini Labs.
    Plugin Author Gemini Labs

    (@geminilabs)

    Your theme also seems to transform SELECT elements into custom dropdown controls. To prevent this from happening with the star-rating control, you will need to add the following code to your theme’s functions.php file:

    /**
     * Add the "browser-default" class to prevent the star-rating SELECT from being transformed into a custom dropdown control
     * Paste this in your active theme's functions.php file.
     * @param string $field
     * @param string $fieldType
     * @return string
     */
    add_filter( 'site-reviews/rendered/field', function( $field, $fieldType ) {
        if( $fieldType == 'select' ) {
            $field = str_replace( 'glsr-star-rating', 'glsr-star-rating browser-default', $field );
        }
        return $field;
    }, 10, 2 );
    • This reply was modified 7 years, 10 months ago by Gemini Labs.
    Plugin Author Gemini Labs

    (@geminilabs)

    @purplecoder I have not heard back from you in a week so will mark this topic as resolved.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Schema is getting detected’ is closed to new replies.