How can I change the "Write a Review" button text and link?

This topic contains 3 replies, has 2 voices, and was last updated by  Alex Rollin 4 years, 2 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #528530

    Romeo Crow
    Expired Member
    Post count: 54

    The “Write a Review” button on a Listing page (for my CPT) looks great (screen: https://drops.audience.ninja/04ug42bL)

    But I need it to do something else:

    1) Say “Contact us”
    2) Open a URL defined by a specific profile field in the that User’s profile

    Use case:

    I am creating a directory for people to find and contact each other.

    There are two places where I’d like “Contact us” buttons; on the Listing page and on the Bubble that pops up when you click a pin on the map page.

    In both cases, when the user puts up their listing, there is a field for a Telegram link; I want both the above Contact Us buttons to open up (in a new window) that user’s Telegram link.

    I don’t want to use the Ninja Forms because I don’t want my users to have to share email addresses; only their Telegram links.

    Is this possible? How can I do it?

    #528571

    Alex Rollin
    Moderator
    Post count: 27815

    If the link is a URL, then you can try the following:

    1. Add a new custom field “my_link”
    2. Use the option “Show in extra location” to show the link in the map bubble or the Details page sidebar.
    3. Also, you can add a new badge to the GD Details template as a shortcode/block (or to the sidebar) with key “my_link” and in the “Link” field (option for the badge) enter %%input%% . Adjust the color of the badge to make it look like the Add Review button

    https://wpgeodirectory.com/docs-v2/places/custom/

    #528579

    Romeo Crow
    Expired Member
    Post count: 54

    Thanks for that solution.
    I had already tried the custom field for URL link and managed to add that both to the bubble and, as a tab, in the Details (listing) page.
    However, I nullified the badge problem by switching the Details page template to use the archive page template.
    So, now there is no badge, etc 🙂
    Hopefully, that won’t cause me problems in the future? (changing the Details template to use the archive template?)

    #528616

    Alex Rollin
    Moderator
    Post count: 27815

    I would recommend you remove the Open Archive sections there.

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