Rating icon on search results page

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

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

Open Support Ticket
  • Author
    Posts
  • #534698

    Karin Zickler
    Lifetime Member
    Post count: 47

    Hi,
    I am looking for a possibility to add an icon (fas fa-star) to the listings on the search results page similar to the favorite icon (heart), which has a link to the rating field on the details page and which changes its color when a user has rated the listing (like the favorite icon which turns red).

    I tried this shortcode:
    [gd_post_badge key=”post_title” condition=”is_not_empty” icon_class=”fas fa-star” badge=”rating” link=”%%post_url%%” bg_color=”#ff9900″ txt_color=”#ffffff” alignment=”right”]
    However, it is not exactly, what I am looking for.

    Can you help me?

    #534706

    Kor
    Moderator
    Post count: 16516

    Hi Karin,

    Thanks for your post. Could you show us what you’ve done? Also, tell us what’s not exactly you’re looking for. Maybe you can elaborate a little bit more with some screenshots?

    #534815

    Karin Zickler
    Lifetime Member
    Post count: 47

    Okay, Let me try to explain it to you.

    1. I add a “review-button” (“Bewerten” – see screenshots) to the search results. This button has a link to the details page (general). How can I link it to the “reviews” part of the details page? Like the “write a review”-button on the details page?

    2. Is it possible to change the color of the button if a user wrote a review? (like the heart icon for favorites which also changes from grey to red?

    I hope, I could explain what I am looking for.

    #534882

    Kor
    Moderator
    Post count: 16516

    Hi Karin Zickler,

    Thanks for your reply.

    1. Yes, clicking on the “review” link should open the details page and to the review section. Could you share your Website URL here so that I could check why isn’t it working for you?

    2. Which button are you referring to? Also, if the listing is reviewed, you should see the rating on the listing.

    #534984

    Karin Zickler
    Lifetime Member
    Post count: 47

    Dear Kor,
    Thank you for your reply. Unfortunately I cannot give you the URL of my website since it is on localhost.
    The button I created is working, but it does not open the review section of the details page. I used this shortcode:
    [gd_post_badge key=”post_title” condition=”is_not_empty” badge=”Bewerten” link=”%%post_url%%” bg_color=”#ffffff” txt_color=”#afafaf” alignment=”right”]
    How can I set the link to go to the review section?

    #535050

    Alex Rollin
    Moderator
    Post count: 27815

    You can try

    link="%%post_url%%/#reviews"

    (untested)

    #535101

    Karin Zickler
    Lifetime Member
    Post count: 47

    Thank you. I tried this shortcode, but it does not work.
    Is there a shortcode for the write-a-review-badge which I can include on the search results page?

    #535152

    Kor
    Moderator
    Post count: 16516

    Hi Karin Zickler,

    Thanks for your reply. Could you share your Website WP admin access here in private reply so that I could check?

Viewing 8 posts - 1 through 8 (of 8 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