27-Nov-2011, 10:54 AM
Hi
I'm a bit confused about the whole Rich Snippets option. The thing is ... following the short explanation under "Settings > Rich Snippets" I cannot find anything alike in the /templates/comments.php file - but instead...
]So is this already the Rich Snippets code included?I'm a bit confused about the whole Rich Snippets option. The thing is ... following the short explanation under "Settings > Rich Snippets" I cannot find anything alike in the /templates/comments.php file - but instead...
PHP Code:
<?php
if ($average_rating != 0) {
echo $output_average_rating;
echo "<span class='average_rating_text'>";
if ($settings->rich_snippets) {
echo " <span class=\"rating\"><span class=\"average\">" . $average_rating . "</span></span> (<span class=\"votes\">" . cmtx_number_of_ratings() . "</span>)";
} else {
echo " " . $average_rating . " (" . cmtx_number_of_ratings() . ")";
}
echo "</span>";
if ($settings->rich_snippets) {
echo "</div>";
}
} else {
if ($settings->rich_snippets) {
echo " <span class=\"rating\"><span class=\"average\"></span></span><span class=\"votes\"></span></div>";
}
}
} else {
if ($settings->rich_snippets) {
echo " <span class=\"rating\"><span class=\"average\"></span></span><span class=\"votes\"></span></div>";
}
}
echo "</div>";[/php
However, if I check the "Enabled" check-box, then (A) I cannot see any difference, but (B) the entire styling of the comments section is out the window.
- What am I missing and - is there another (missing) CSS file for when the rich snippets is enabled?
- Besides, no matter if enabled or not, the average rating shows only the stars and a 4/5 ... no text at all