I have some wonderful banners on my website with some BIG and SCARY affiliate links. :)
Our Top Ranked #1 Web Host for WordPress Hosting
Latest Uptime Stats (Real Records):
Server Response Speed Test Scored A+:
To apply the best SEO practices and play it safe, I ‘nofollow’ affiliate links by adding a rel=”nofollow” attribute inside the banner/image link, like this:
One day, when I looked at the banner codes, I was surprised to notice that there was no rel=”nofollow” attribute!
After some troubleshooting, I discovered the culprit – Avada (affiliate link), my WordPress theme.
Fix rel attribute getting removed from image links in Avada
After some back and forth ticketing over a period of two days with the Avada support, they acknowledged that they have an issue on their end.
The bad news is that they don’t know when they’ll fix the problem!
Here’s the text version as well:
I have discussed with our developer and he was able to replicate the issue and the problem is exactly the same option I mentioned at the very first time. You have to disable the Show Post Images in Lightbox option. Our theme removes the rel from links not going to an image.
I have added this to our developer to-do list to fix this and our developer will look into this future but we cannot guarantee any timeline when it will be fixed.
So, until they fix the bug, we’ll have to live with another solution.
As Avada’s support pointed out, to fix the rel attribute getting removed from an image link, you’ll have to disable the lightbox feature for post images.
You can do that here: Avada -> Theme Options -> Lightbox -> Show Post Images in Lightbox -> select OFF.
This will fix the issue and the rel attribute will appear in the image links.
Avada lightbox alternative
If you disable the Avada lightbox for posts, it means that the default WordPress functionality will kick in when the users click on an image to enlarge it.
That kind of sucks because WordPress opens the image in a separate browser screen which only displays the full size of your image, nothing else.
This means that the readers are taken away from your post and they have to click the “Back” button to continue reading, which is annoying.
So, as an alternative, you could install WP Featherlight, which is a simple and light jQuery lightbox plugin.
It doesn’t have any options. You just install it and select Link To -> Media File when you upload the image in WordPress, as you had to do for the Avada lightbox.
The Avada lightbox feature will still work for WordPress image galleries inside the posts, even if you disable ‘Show Post Images in Lightbox’!
It goes without saying that it will still work for pages as well because that disabled feature was only for posts.
So, if your posts also have galleries in them – not just standalone images – or you have a portfolio page, then it won’t be such a good idea to install WP Featherlight because conflicts might occur.
Therefore, I recommend to completely disable the Avada lightbox feature for the entire WordPress website.
You can do that here: Avada -> Theme Options -> Lightbox -> Lightbox -> select OFF.
Work with the WP Featherlight plugin until Avada fixes the issue.
Or you might want to continue using it afterward too. Your call!
That’s a wrap
Hope you found the post useful and comprehensive!
Don’t forget to share the post to help out others!
You can quickly subscribe to my newsletter by using this link or the subscription form.
If you have any questions or thoughts, drop a comment or send a message via contact or Facebook page.
If you want to start your own WordPress blog, or need a website for your business, ThemeSkills’ WordPress installation service is at your disposal! On-going WordPress support and maintenance are on the menu as well!