I’m trying to imagine what might be our intention in stripping rel tags. Can you be more precise in this?
There was rel attribute (instead of data-rel) used as lightbox trigger in the past (before 1.5). This however was not passing w3c validation, so we switched to data-rel but tried to kept manual usage of rel compatibility. That’s the background of the issue.
Thread Starter
donna9
(@donna9)
Thanks for the quick reply. On my test page i have:
<strong><a href="http://mydomain.com/image.jpg" rel="nofollow" title=""></a></strong>
When i enable your plugin to have this as a popup using “prettyPhoto” it works fine but when i look at the underlying source i see that it is now:
<strong><a href="http://mydomain.com/image.jpg" data-rel="lightbox-gallery-Sgxe" title=""></a></strong>
Notice the nofollow has been stripped. I’ve seen some cases where u place the nofollow inside the data-rel attribute which doesnt help because nofollow doesnt work inside that.
WHen i uncheck “Single images as gallery” then it shows:
<strong><a href="http://mydomain.com/image.jpg" data-rel="nofollow lightbox-gallery-Sgxe" title=""></a></strong>
As u can see nofollow is back HOWEVER because it is inside data-rel it now becomes useless and serves no purpose since nofollow must be inside rel not data-rel.
I tried W3 HTML5 validator and it seems to validate fine with rel and data-rel used together so just not sure why u guys didnt just keep both when they validate fine (just tried it now using their “Direct Input” test).
Thread Starter
donna9
(@donna9)
Havent heard back from you in a while so i guess i will fix your code to resolve this problem. Again, W3C Validator seems to say it is fine (ie, to have rel and data-rel for “a” anchor links) so i am confused why this wasnt done in the first place. Anyway, i will fix your code now and move on. Regards.
I am having a similar issue except I don’t know how to fix php. It’s not that my nofollow is being stripped but that I can’t find a way to add nofollow to image links. I am intentionally using the simple “Single Image” for 6 of my images with links on one specific part of my site so that they are rendered/displayed the way I want them plus that way I can have them all linked. The only other way I can see to work around this is to put those 6 images into a text block and edit the link itself. This does work and keeps the rel=”nofollow” but I was hoping there was an easier way. With the text block I then have to do some css fixes which isn’t always easy to design for whichever browser or screen size.