Skip Navigation

[Resolved] Thumbnail Images Can’t Be Made Clickable

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 2 replies, has 1 voice.

Last updated by - 4 days, 20 hours ago.

Assisted by: Christopher Amirian.

Author
Posts
#2918289

I tried to attach this issue to a previous support ticket, but apparently, it has been closed. Here is the link to the original ticket: https://toolset.com/forums/topic/compatibility-issues-with-divi-5/

I have upgraded to the latest Toolset, and for the most part everything seems to work fine. However, today I just noticed a strange behavior in which thumbnail images with URL wrappers are not being rendered as clickable links--even though the page source clearly shows the <a> tag with the correct url embedded. And, ironically, the link is clickable in the Page Source view.
I've investigated my site and I notice that this seems to happen on every page where I've used the same type of code in a view. For example on my "guest-archive" view, I have this code in my view:
<div class="tsv-loop-item">
<div class="tsv-featured">hidden link</div>
<div>
<h2 style="margin-bottom:0;padding-bottom:0;"><span class="tsv-title">hidden link</span></h2>
<p class="tsv-author">[wpv-post-date format="M j, Y"] | [wpv-post-taxonomy type="guests" format="link"]</p>
<p class="tsv-excerpt">[wpv-post-excerpt length="20" count="word" format="noautop"]</p>
</div>
</div>
And, if you look on this page: hidden link
you can see that the appearance is in every way correct, except that each thumbnail image is not a clickable link as I expect it to be.
And if you look at the page source for that page, you'll see that the code is indeed rendered correctly. So, what is causing the link to be non-clickable in the rendered output? Makes no sense to me. I'd sure appreciate it if you could check this and let me know if I'm doing something wrong.
By the way, this behavior is the same on both Firefox and Chrome.
Thanks,
David

#2918307

Christopher Amirian
Supporter

Languages: English (English )

Hello,

I checked your guest archive page. The links are output correctly, but the site has this custom CSS rule:

img { pointer-events: none; }

This rule makes every image on the site ignore mouse clicks. The click never reaches the link around the thumbnail, so it can't be clicked. This comes from the site's custom CSS, not from Toolset.

Please follow the steps below:

1. Go to Divi → Theme Options → General → Custom CSS, and also Appearance → Customize → Additional CSS.

2. Find the line img { pointer-events: none; } and remove it.

3. If you added that rule on purpose, for example to stop people dragging images, keep it and add this line below it instead:

.tsv-featured img { pointer-events: auto; }

4. Save, then clear the Divi cache under Divi → Theme Options → Builder → Advanced → Static CSS File Generation, and clear any caching plugin.

Thanks.

#2918979

That is very weird!! I added that rule to my css in order to prevent the display of image "Title" information whenever you hover over an image. It's annoying and this was the way recommended to me to prevent that. It seems to me that this should NOT prevent an image from being clickable when it's got an <a> tag around it.
In any event, I tried your fix and it does work, so thanks for your help.