This is the community forum. For a developer response use the Client Area.
Follow us on Facebook, Twitter and YouTube!

Rich Snippets in 1.7.
#1

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...
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
]So is this already the Rich Snippets code included?
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.

  1. What am I missing and - is there another (missing) CSS file for when the rich snippets is enabled?
  2. Besides, no matter if enabled or not, the average rating shows only the stars and a 4/5 ... no text at all
Thanks a lot
Reply


Messages In This Thread
Rich Snippets in 1.7. - by Norbs - 27-Nov-2011, 10:54 AM
RE: Rich Snippets in 1.7. - by Steven - 27-Nov-2011, 01:27 PM
RE: Rich Snippets in 1.7. - by Methyus - 03-Oct-2016, 01:40 PM

Possibly Related Threads…
Thread / Author Replies Views Last Post

Forum Jump:


Users browsing this thread: 1 Guest(s)