Viewing 3 replies - 1 through 3 (of 3 total)
  • Not currently, there isn’t. You might be able to add the attribute to the gallery images post-page load with jQuery without having to alter any of the php code of the gallery, just an idea.

    Something like this (haven’t tested this in actual code, and may need to be tweaked depending on your theme):

    <script>jQuery('.gallery-item a').attr('rel','nofollow');</script>

    Thread Starter tgl14

    (@tgl14)

    Thank you for your response! And sorry, I should have updated here–I actually ended up using a different solution just for the sake of speed. Hopefully this will be useful for the next person with the same question.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to apply "nofollow" to gallery links?’ is closed to new replies.