Repositioning the ratings in list-view (part II)

This topic contains 8 replies, has 2 voices, and was last updated by  Atilla Boz 7 years, 3 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #390993

    Atilla Boz
    Full Member
    Post count: 280

    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,
    Atilla

    #390994

    Atilla Boz
    Full Member
    Post count: 280
    This reply has been marked as private.
    #390998

    Atilla Boz
    Full Member
    Post count: 280

    A 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!

    #391030

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    A 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!

    #391080

    Atilla Boz
    Full Member
    Post count: 280

    A 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!

    #391100

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    A 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!

    #391116

    Atilla Boz
    Full Member
    Post count: 280

    A 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!

    #391133

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    A 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!

    #393869

    Atilla Boz
    Full Member
    Post count: 280

    A 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!

Viewing 9 posts - 1 through 9 (of 9 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount