hReview Plugin Not Working with Enlightenment

Viewing 2 posts - 1 through 2 (of 2 total)
  • #22950
    mattpap
    Participant

    Hello,

    since I start using Enlightenment,Google stopped showing in the search results the review stars of the products I feature in my site .

    I am using the hReview Plugin to rate the products in my site.

    Author hReview

    This plugin allows you to rate a certain product that you feature in your site. The number of stars you give to this product show in Google search results, increasing the click through rate.

    Since I start using Enlightenment, the stars are not showing any more in Google Search Results.

    Do you know how I can fix this?

    Matthew

    #22951
    Daniel Tara
    Keymaster

    It is possible that the theme’s Schema Markup feature is conflicting with the plugin. Unfortunately there is no option to disable it but a simple code snippet should do it. I suggest creating a child theme for this task.

    1. Create a child theme
    2. Create a file called functions.php in the child theme’s directory
    3. Add this code to the functions.php file
    function enlightenment_child_setup_theme() {
    	// Disable Schema Markup Feature
    	remove_theme_support( 'enlightenment-schema-markup' );
    }
    add_action( 'after_setup_theme', 'enlightenment_child_setup_theme', 11 );
    
    // Optional code to avoid requesting an empty style.css file
    function enlightenment_child_enqueue_styles() {
    	wp_dequeue_style( 'enlightenment-parent-stylesheet' );
    	wp_enqueue_style( 'enlightenment-theme-stylesheet' );
    }
    add_action( 'wp_enqueue_scripts', 'enlightenment_child_enqueue_styles', 11 );
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.