Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search

How to add "Nofollow" for image and button links?


Recommended Posts

Hi. Hoping someone can shed some light on this as I can't seem to find an obvious answer.

I'm wondering how, if at all, am I able to add "nofollow" links to images and buttons??

No problem with text, using the markdown box.

Edited by kamiwealth
Link to post
  • Replies 20
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

Having the option within the WYSIWYG editor to set the appropriate rel= info is actually very important. The rel=nofollow and rel=sponsored attributes play a critical role for Google. We love the Squa

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js"></script> <script> $(document).ready(function() { $('[href*="beaverhero.com"]').attr('rel','nofollow'

Which plan do you use? If you use Business Plan, you can use some custom code to add rel="nofollow" to all image/button links. Can you share link to your site?

Posted Images

Which plan do you use?

If you use Business Plan, you can use some custom code to add rel="nofollow" to all image/button links.

Can you share link to your site?

You can send your question to my email to get faster answer.

How to:

-- I'm off in Lunar New Year. Will take 3-7 days to you get the answer on Forum.

Link to post
6 hours ago, kamiwealth said:

@tuanphan

Hi tuanphan, any update on this? (I know you're busy, apologies)

Add to Home > Settings > Advanced > Code Injection > Footer

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js"></script>
<script>
$(document).ready(function() {
	$("a").attr('rel','nofollow');
});
</script>

 

You can send your question to my email to get faster answer.

How to:

-- I'm off in Lunar New Year. Will take 3-7 days to you get the answer on Forum.

Link to post
18 hours ago, kamiwealth said:

@tuanphan  Thank you, much appreciated. I'm assuming this code will affect everything site-wide?

you can add to Page Header, if you want to run One Page

You can send your question to my email to get faster answer.

How to:

-- I'm off in Lunar New Year. Will take 3-7 days to you get the answer on Forum.

Link to post

Do you mind explaining briefly what this script actually does please @tuanphan

For example; I know it's for nofollow, but does it make everything on the page nofollow? Is it just for buttons and images?

I do apologize for all the questions!

 

Link to post

above code for all links

Which page you want to change? also can you take screenshot images/button on that page?

You can send your question to my email to get faster answer.

How to:

-- I'm off in Lunar New Year. Will take 3-7 days to you get the answer on Forum.

Link to post
  • 1 month later...
7 hours ago, Zineta said:

@tuanphan Is there a way to configure the script so that it only makes links to a certain root domain (for example amazon) no follow while the rest is dofollow? 

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js"></script>
<script>
$(document).ready(function() {
	$('[href*="beaverhero.com"]').attr('rel','nofollow');
});
</script>

Notes: This code will target all links that contain the word "beaverhero.com" in the link.

You can send your question to my email to get faster answer.

How to:

-- I'm off in Lunar New Year. Will take 3-7 days to you get the answer on Forum.

Link to post
9 hours ago, tuanphan said:

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js"></script>
<script>
$(document).ready(function() {
	$('[href*="beaverhero.com"]').attr('rel','nofollow');
});
</script>

Notes: This code will target all links that contain the word "beaverhero.com" in the link.

That works perfectly, thank you!

Link to post
  • 2 months later...
On 7/11/2020 at 3:36 PM, tuanphan said:

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js"></script>
<script>
$(document).ready(function() {
	$('[href*="beaverhero.com"]').attr('rel','nofollow');
});
</script>

Notes: This code will target all links that contain the word "beaverhero.com" in the link.

Thank you so much! I'm so happy to finally find the code that works.

Link to post
  • 1 month later...
On 5/9/2020 at 9:11 AM, tuanphan said:

Add to Home > Settings > Advanced > Code Injection > Footer


<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js"></script>
<script>
$(document).ready(function() {
	$("a").attr('rel','nofollow');
});
</script>

 

 

Link to post

I've got a lot of links out of the site so I thought it would be a good idea to make them all no follow to avoid the site getting penalised, so this looks like exactly what I need. 

I've put it into the footer, however I'm not sure that it's working - when I hover over the links I'm not seeing nofollow. Is that how its supposed to be or have I set it up wrong. 

You can see the site here: shopportunity.ie

You can see an example of a link out on this page on the button that says VISIT THE GUTTER BOOKSHOP

https://shopportunity.ie/irish-online-store-directory/thegutterbookshop

Any advice would be hugely appreciated!

 

Link to post

Oh wonderful! I thought that as it wasn't showing up when I hovered over the button that it might not be working. Thank you so much for taking the time to help - it's much appreciated!

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...