Ability to change the source link

Ability to change the source link the customers are redirected to when they click on Write a Review

Folks, our former Wishlist portal, where our users shared their requests and suggestions, was transferred to this forum. You’re most welcome to vote, add new ideas, and leave your comments here — we surely will consider them all! :star_struck:

Original Votes: 4

Hey everyone!

While this option isn’t available in the widget yet, we’ve got a custom solution:

const LINK = "https://g.page/r/CV21TXsdoNY1EB0/review";
const TARGET = "_blank";

widget.on("init", ({ widgetContainer }) => {
  const writeReviewButton = widgetContainer.querySelector(".es-header-write-review-button");
  writeReviewButton?.addEventListener("click", (e) => {
    e.stopPropagation();
    window.open(LINK, TARGET);
  });
});

Please replace the link in the 1st line of the code (Google Maps) with the needed link and add the resulted script to the Custom JS field on the Settings tab of your widget’s settings.

If you’d like the link to be opened in the same tab, please replace _blank with _self in the 2nd line of the code :slightly_smiling_face:

1 Like