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.
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.
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.
-
This reply was modified 8 years, 11 months ago by
MyThemeShop.
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 !