• Resolved 007mer

    (@007mer)


    Hi,

    At the moment the “Link To Post” is enabled so the review title is linking to the single post page.

    How can I make the image (uploaded photo) link to the single post page?

    Please check: https://snipboard.io/vuzDkE.jpg

    Kind regards!

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor etoilewebdesign

    (@etoilewebdesign)

    Hello @007mer,

    Unfortunately, at the moment, there is no option in the plugin to do so.

    Alternatively, you can modify the core files of the plugin to get what you want, that is if you are comfortable doing so. Just note that your custom modifications in the code will get overwritten if you update the plugin.

    Open up the SelectReview.php file that is found in the shortcodes folder.

    Delete the codes on line 211 and line 213:
    211: if ($Link_To_Post == "Yes") {$ReturnString .= "<a href='" . $Permalink . "' class='ewd-urp-review-link'>";}

    213: if ($Link_To_Post == "Yes") {$ReturnString .= "</a>";}

    Replace the code from line 246 to 248:

    $ReturnString .= "<div class='ewd-urp-review-image ewd-urp-image-" . $Review_Format ."'>";
    $ReturnString .= get_the_post_thumbnail($Review->ID);
    $ReturnString .= "</div>";

    with the following:

    if ($Link_To_Post == "Yes") {
    $ReturnString .= "<a href='" . $Permalink . "' class='ewd-urp-review-link'>";}
    $ReturnString .= "<div class='ewd-urp-review-image ewd-urp-image-" . $Review_Format ."'>";
    $ReturnString .= get_the_post_thumbnail($Review->ID);
    $ReturnString .= "</div>";
    if ($Link_To_Post == "Yes") {$ReturnString .= "</a>";}
    Thread Starter 007mer

    (@007mer)

    IT IS WORKING!!!
    Thank you so much!

    Plugin Contributor etoilewebdesign

    (@etoilewebdesign)

    No problem ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Image that’s links to post’ is closed to new replies.