This is all very confusing. I thought colorbox Mobile Detection worked, and the only problem was the link - see below. However when I try it again it does not detect screen size changes at all, even after clearing all caches at server and client ends.
I am using an image field and setting Manage Display to Colorbox on the node.
My original problem with leaving the link in place still stands. I can clobber colorbox by putting jQuery.colorbox.remove();
in a script of my own, but then it leaves the link in place from the displayed image to the one that would have appeared in Colorbox, were it active. If someone clicks on the image it jumps to just display the target image with no page styling, headers, navigation, etc, which is very disorienting for a user, particularly on a mobile.
I realise that there may be other cases where this is the desired behaviour, but for simple image display I suggest it is not - it is certainly not in my site design. Please
a) fix the Mobile Detection, and
b) either change the link behaviour, or provide an option to configure it on or off.
Comments
Comment #1
Anonymous (not verified) CreditAttribution: Anonymous commentedmaynardsmith created an issue. See original summary.
Comment #2
Anonymous (not verified) CreditAttribution: Anonymous commentedComment #3
fanky4 CreditAttribution: fanky4 commentedSame issue here!
Comment #4
frjo CreditAttribution: frjo commented@maynardsmith, I think you mean that Colorbox doesn't detect *window* size changes at all and that is correct. It only checks the *screen* size when it loads and that part works as far as I can tell.
To remove or deactivate the link you can add your own JavaScript, something like this: