• Garbonso

    (@garyupham)


    Like the title says,

    I just want the image to randomly populate, but not link to anything. Please advise.

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author girish.tiwari

    (@girishtiwari)

    Hi @garyupham,

    The plugin has already an option to link/no-link the image with any URL.
    Please leave the “Image URL” field empty if you don’t want to link the image with any URL. If the problem still persists, can you please share an screenshot of the admin page?

    Thread Starter Garbonso

    (@garyupham)

    I am aware. As indicated in my title, I have the “Image URL” field blank but it is still linking back to homepage.

    https://shiftisgoodweb.com/images/refresh.png

    Plugin Author girish.tiwari

    (@girishtiwari)

    Hi @garyupham,

    Sorry for the delay here. Can you please contact us at – [email protected]

    garyupham is right, I’m experiencing the same problem, when you leave the “Image URL” field black you still gets and anchor tag on your output HTML, the problem is located on function.php line 117.

    if (!empty($slideText) && filter_var($slideText, FILTER_VALIDATE_URL) !== false) {
      $value = "<a href='".$slideText."' target='".$target."'>".$value."</a>";
    } else {
      $value = "<a href='".slideText."'>".$value."</a>"; // we always get an <a> :(
    }

    The code should be as follow so the anchor tag is only included if $slideText is not empty.

    if (!empty($slideText)) {
      $value = '<a href="' . slideText . '"';
      if (filter_var($slideText, FILTER_VALIDATE_URL) !== false) {
        $value .= ' target="' . $target . '"';
      }
      $value .= '>' . $value . '</a>';
    }

    Thank you so much for your hard work, I hope this helps.

    Plugin Author girish.tiwari

    (@girishtiwari)

    Hi @altrugon,

    We have fixed this issue and have released a new version of the plugin (version 1.9). Kindly update the plugin and let us know if the issue is resolved now.

    Thread Starter Garbonso

    (@garyupham)

    This is great news!

    Unfortunately, I do not see the option to update to a newer version. It shows that I am up to date. The latest version I see currently available is 8.9.3. If that is the most current version, it is still not working for me.

    Thank you @girish,

    The blank anchor is now gone, I took a peak to the code too and it’s working as it is supposed to.

    Plugin Author girish.tiwari

    (@girishtiwari)

    Hi @garyupham,

    The latest version released id 1.9. If you are having any issues then please contact us at – [email protected] so that we can further look into it.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Image links to current page even though I have the Image Url field blank’ is closed to new replies.