Home › Support Forums › Theme Support › Enlightenment › hReview Plugin Not Working with Enlightenment › Reply To: hReview Plugin Not Working with Enlightenment
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.
- Create a child theme
- Create a file called functions.php in the child theme’s directory
- 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 );