"The image #1 could not be loaded"

Posted in: Newspaper
Post count: 174

This annoying phrase pops up when I click on team logos on a sidebar widget for the plugin Sportspress. Desired result is to have clicking the team logo image go to the team page like a link. Is there a way to have it go to the URL instead of a lightbox popup?

I already tried turning off lightbox and disabling General Modal Image, doesn’t fix it.

Post count: 20688

Hi,

That would be the theme modal you are describing. But it shouldn’t apply to images in widget sidebars. What widget are you using in the sidebar? I will make some tests. Does the same happen if you use the sidebar in a different page or post?

Thanks

Post count: 174

I’m using the sportspress widgets — teams gallery. Tried widget in different page and same thing happens.

Post count: 20688

The modal must be applying to those images for some reason. If you disabled the theme modal then the individual settings set for the images will apply. Maybe those images have the modal set to on.

You could try the code provided in this topic by Bogdan, but it will disable the modal in general
https://forum.tagdiv.com/topic/weird-picture-size/
Enter it in the custom javascript section, without the script tags
https://www.screencast.com/t/i51uTukcBxZl

Post count: 174

That jquery code fixed it, but now all image galleries lightbox’s are disabled. Is there a way to disable it just for the plugin ‘sportspress’? Maybe if I post jquery in the plugin’s js files?

Post count: 20688

You could try that and see if it works, or maybe with a condition in the code to restrict it somehow. But I really don’t know how that would be possible.

Or maybe with a condition where the modal class is applied to the images in the first place
https://www.screencast.com/t/SBgK8UTJ

Viewing 6 posts - 1 through 6 (of 6 total)
The forum ‘Newspaper’ is closed to new topics and replies.