Viewing 12 replies - 1 through 12 (of 12 total)
  • 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?

    Thread Starter oursmallhours

    (@oursmallhours)

    https://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','https://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="https://www.therisingspoon.com/2013/03/how-to-make-homemade-meat-stock.html" onclick="javascript:_gaq.push(['_trackEvent','outbound-article','https://www.therisingspoon.com']);" target="_blank" class="set-target no-lightbox"><img width="150" height="150" src="https://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="https://www.oursmallhours.com/wp-content/uploads/2014/01/155.jpg" rel="cyberchimps-lightbox" onclick="javascript:_gaq.push(['_trackEvent','outbound-article','https://www.therisingspoon.com']);">
        <img class="attachment-thumbnail" height="150" width="150" alt="How To Make Homemade Meat Stock" src="https://www.oursmallhours.com/wp-content/uploads/2014/01/155-150x150.jpg"></img>
    </a>

    Assuming “https://www.therisingspoon.com/2013/03/how-to-make-homemade-meat-stock.html&#8221; 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.

    Thread Starter oursmallhours

    (@oursmallhours)

    Okay, I’ve deactivated the WP Gallery Custom Links plug-in and this is what I have:
    https://www.oursmallhours.com/2014/01/natural-stomach-virus-prevention.html

    Can you try re-enabling it now? The onclick seems to have disappeared – did you disable any other plugins or just this one?

    Thread Starter oursmallhours

    (@oursmallhours)

    Just that one.

    Thread Starter oursmallhours

    (@oursmallhours)

    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.

    Thread Starter oursmallhours

    (@oursmallhours)

    Thanks! I’ll get started on it. ??

    Thread Starter oursmallhours

    (@oursmallhours)

    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 ??

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Links not working’ is closed to new replies.