Additional sub text on llisting preview

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

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

Open Support Ticket
  • Author
    Posts
  • #277211

    Thomas Hutton
    Free User
    Post count: 99

    Our client has asked if we can add another little link (indicated in RED on the screen shot attached) saying ‘write review’… just under where there are 2 already ” 1 review’ and ‘favourite’…

    We;d also like to add a small font awesome icon to accompany it too…

    See attached and it should become clear.

    #277309

    Kor
    Moderator
    Post count: 16516

    Hi Thomas,

    Apply the code below into the theme using this snippet plugin. https://wordpress.org/plugins/code-snippets/ . This will display a “Write Review” link below the favorite link as shown in this screenshot http://prntscr.com/cpqfaz

    
    
    function _my_txt_under_fav($post_id,$type){  
    	echo "<a href='". get_comments_link( $post_id ) ."'>Write Review</a>";
    }
    add_action('geodir_after_favorite_html','_my_txt_under_fav',10,2);

    Thanks!

    #277317

    Thomas Hutton
    Free User
    Post count: 99

    hi Thomas…

    Thanks for that… but getting error… see attached.

    #277371

    Kor
    Moderator
    Post count: 16516

    Hi Thomas,

    Looks like the apostrophe is not displaying correctly hence causing some issues. Could you please make sure it looks the same like code below?

    
    
    function _my_txt_under_fav($post_id,$type){  
    	echo "<a href='". get_comments_link( $post_id ) ."'>Write Review</a>";
    }
    add_action('geodir_after_favorite_html','_my_txt_under_fav',10,2);
Viewing 4 posts - 1 through 4 (of 4 total)

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

Open Support Ticket