Title: Validation error
Last modified: June 9, 2017

---

# Validation error

 *  [vankatax](https://wordpress.org/support/users/vankatax/)
 * (@vankatax)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/validation-error-58/)
 * Hi,
    You have build great plugin, but when try to validate my website I see this:
 *     ```
       Error: Element style not allowed as child of element div in this context. (Suppressing further errors from this subtree.)
       v> </div> <style type="text/css"> .wp-r
       ```
   
 * It’s easy to fix this?

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

 *  Plugin Author [MyThemeShop](https://wordpress.org/support/users/mythemeshop/)
 * (@mythemeshop)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/validation-error-58/#post-9221923)
 * Hello,
 * Sorry for the late reply.
 * Unfortunately, there is no easy fix for validation errors as we are adding styles
   inline because there is no way we could add them in head tag. We will see if 
   there is something we can do about it in future.
 * Thank you.
 *  Thread Starter [vankatax](https://wordpress.org/support/users/vankatax/)
 * (@vankatax)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/validation-error-58/#post-9222519)
 * HI,
    Thank you for respond. It’s have a easy fix that I can make manually ? I
   can add some code in head tag… this is the last error that I see in my web-pages.
 *  Plugin Author [MyThemeShop](https://wordpress.org/support/users/mythemeshop/)
 * (@mythemeshop)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/validation-error-58/#post-9222798)
 * Hello,
 * The only way is to remove per review box styling and style it within your theme’s
   style.css. To do that, please copy star-input.php file from wp-review/rating-
   types/ folder and paste it into your child theme folder.
 * Then add this in your child theme’s functions.php file:
 *     ```
       add_action( 'init', 'my_theme_redeclare_star_type', 20 );
       function my_theme_redeclare_star_type() {
           if( function_exists('wp_review_register_rating_type') ) {
               wp_review_register_rating_type( 'star', array(
                   'label' => __('Star', 'wp-review'),
                   'max' => 5,
                   'decimals' => 1,
                   'value_text' => __('%s Stars', 'wp-review'),
                   'value_text_singular' => __('%s Star', 'wp-review'),
                   'input_template' => get_stylesheet_directory() . '/star-input.php',
                   'output_template' => WP_REVIEW_DIR . 'rating-types/star-output.php',
               ) );
           }
       }
   
       add_filter( 'wp_review_color_output', '__return_empty_string' );
       ```
   
 * After that, remove or comment out this line:
 *     ```
       echo $color_output;
       ```
   
 * at the bottom of your-theme-folder/star-input.php
 * Thank you.
    -  This reply was modified 8 years, 11 months ago by [MyThemeShop](https://wordpress.org/support/users/mythemeshop/).
    -  This reply was modified 8 years, 11 months ago by [MyThemeShop](https://wordpress.org/support/users/mythemeshop/).
 *  Thread Starter [vankatax](https://wordpress.org/support/users/vankatax/)
 * (@vankatax)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/validation-error-58/#post-9235860)
 * Thank you for this solution !!!!
    Finally I validated all my web-pages.. Now 
   I have only two warnings 🙂 Thank you again for support and great plug-in which
   you made !

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

The topic ‘Validation error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-review_e57c82.svg)
 * [WordPress Review Plugin: The Ultimate Solution for Building a Review Website](https://wordpress.org/plugins/wp-review/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-review/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-review/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-review/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-review/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-review/reviews/)

## Tags

 * [html5](https://wordpress.org/support/topic-tag/html5/)
 * [validation](https://wordpress.org/support/topic-tag/validation/)

 * 4 replies
 * 2 participants
 * Last reply from: [vankatax](https://wordpress.org/support/users/vankatax/)
 * Last activity: [8 years, 11 months ago](https://wordpress.org/support/topic/validation-error-58/#post-9235860)
 * Status: not resolved