Repositioning the ratings in list-view (part II)
This topic contains 8 replies, has 2 voices, and was last updated by Atilla Boz 9 years ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support TicketTagged: category view, rating stars
-
AuthorPosts
-
August 14, 2017 at 1:07 am #390993
Hi friends,
I got to get back to this topic here:
https://wpgeodirectory.com/support/topic/supreme-directory-repositioning-the-ratings-in-list-view/Stiofan helped out with some extra code for the functions.php right there and helped me position the star ratings under the title. At the end I wrote its all cool and I got 2 ratings now. but I ONLY THOUGHT its all cool because when I re-checked the situation I saw that the ones that Stiofan helped me to add under the title dont work like they should do. The stars are there – cool. BUT the stars dont show the ratings only the second stars under the picture work properly and show the ratings how they should be shown.
I just tried to hide the one on the top and reposition the other one with this code here:
.geodir_category_list_view li .geodir-addinfo { width: 71%; float: right; margin-right: 0; margin-top: -143px; } GD - LISTENANSICHT - Anzahl .geodir_category_list_view .gd-star-rating { float: left; }But the problem is, sometimes the text has 4 lines and sometimes 6 lines so the margin-top -143px wont work properly. So would you please help me out so the stars that are right under the title work properly?
This is the code that Stiofan sent me last time:
add_action('geodir_after_listing_post_title','_my_listview_change',10,1); function _my_listview_change($post){ global $preview; $review_show = geodir_is_reviews_show('listview'); if ($review_show) { if (!$preview) { $post_avgratings = geodir_get_post_rating($post->ID); echo geodir_get_rating_stars($post_avgratings, $post->ID); } ?> <a href="<?php comments_link(); ?>" class="geodir-pcomments"><i class="fa fa-comments"></i> <?php geodir_comments_number($post->rating_count); ?></a> <?php } }Thanks in advance,
AtillaAugust 14, 2017 at 1:12 am #390994This reply has been marked as private.August 14, 2017 at 1:21 am #390998A valid license is required to view this reply.
You may need to login
OR
Buy either a Membership or valid license for this product.
Thanks, Team GeoDirectory!
August 14, 2017 at 7:26 am #391030A valid license is required to view this reply.
You may need to login
OR
Buy either a Membership or valid license for this product.
Thanks, Team GeoDirectory!
August 14, 2017 at 1:25 pm #391080A valid license is required to view this reply.
You may need to login
OR
Buy either a Membership or valid license for this product.
Thanks, Team GeoDirectory!
August 14, 2017 at 2:15 pm #391100A valid license is required to view this reply.
You may need to login
OR
Buy either a Membership or valid license for this product.
Thanks, Team GeoDirectory!
August 14, 2017 at 3:09 pm #391116A valid license is required to view this reply.
You may need to login
OR
Buy either a Membership or valid license for this product.
Thanks, Team GeoDirectory!
August 14, 2017 at 3:48 pm #391133A valid license is required to view this reply.
You may need to login
OR
Buy either a Membership or valid license for this product.
Thanks, Team GeoDirectory!
September 1, 2017 at 12:14 am #393869A valid license is required to view this reply.
You may need to login
OR
Buy either a Membership or valid license for this product.
Thanks, Team GeoDirectory!
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket