Links not working
-
Hi! I discovered this morning that my gallery links weren’t working when they had been previously. Could this be due to the recent WP update? If so, when can we expect a WP Gallery Custom Links update?
Thanks!
-
3.8.1 was just a maintenance release, and it appears to be working fine with WP Gallery Custom Links on my test site. Do you have a link to your gallery that’s not working, and have you made any other changes recently aside from updating to 3.8.1?
http://www.oursmallhours.com/2014/01/natural-stomach-virus-prevention.html
I haven’t made any other updates since the links were last working. (They were working last night before I updated WP.)
In Gallery Settings, each picture has the website URL as the Gallery Link Target and the Link To is Attachment Page. Is there something I’m missing?
I noticed in your source that your gallery image links have the following:
onclick="javascript:_gaq.push(['_trackEvent','outbound-article','http://www.therisingspoon.com']);"Do you have a particular plugin that’s adding that onclick event, or how are those getting on there?
Actually, if you do a view source on your page, your gallery image has the following:
<a href="http://www.therisingspoon.com/2013/03/how-to-make-homemade-meat-stock.html" onclick="javascript:_gaq.push(['_trackEvent','outbound-article','http://www.therisingspoon.com']);" target="_blank" class="set-target no-lightbox"><img width="150" height="150" src="http://www.oursmallhours.com/wp-content/uploads/2014/01/155-150x150.jpg" class="attachment-thumbnail" alt="How To Make Homemade Meat Stock" /></a>But looking at it with “Inspect Element” I see the following:
<a class="set-target no-lightbox" target="_blank" href="http://www.oursmallhours.com/wp-content/uploads/2014/01/155.jpg" rel="cyberchimps-lightbox" onclick="javascript:_gaq.push(['_trackEvent','outbound-article','http://www.therisingspoon.com']);"> <img class="attachment-thumbnail" height="150" width="150" alt="How To Make Homemade Meat Stock" src="http://www.oursmallhours.com/wp-content/uploads/2014/01/155-150x150.jpg"></img> </a>Assuming “http://www.therisingspoon.com/2013/03/how-to-make-homemade-meat-stock.html” is your custom link, it looks like you have something modifying the links post-page-load via javascript. When I disable javascript, reload, and view the source, the html link is still there. It looks like you have a conflict with another plugin, would be my guess.
Okay, I’ve deactivated the WP Gallery Custom Links plug-in and this is what I have:
http://www.oursmallhours.com/2014/01/natural-stomach-virus-prevention.htmlCan you try re-enabling it now? The onclick seems to have disappeared – did you disable any other plugins or just this one?
Just that one.
I re-enabled it and the links still aren’t working.
Doing a view source on the page indicates that the custom links are being set – but somehow the links are being modified with javascript by something else after that point. My suggestion would be to disable your plugins and re-enable one-by-one until you find the one that’s causing that to happen.
Thanks! I’ll get started on it. 🙂
aHA! Apparently my theme was causing an issue. There was a setting for a new feature (Gallery Lightbox) that I inadvertently ticked last night when working with another setting on my theme.
When I unticked the Gallery Lightbox setting, my links went back to normal.
Thank you so much for your help!
Glad you got it working 🙂
The topic ‘Links not working’ is closed to new replies.