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

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

Recommended Posts

Posted (edited)

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

Share this post


Link to post
Posted (edited)

Hi tuanphan, thank you for replying. Sorry for my late reply. Yes, I have a business plan.

Any guides you can recommend to do this? I'm a content writer and have very basic knowledge of code!

My site: https://www.kamiwealth.com/

Edited by kamiwealth
spelling

Share this post


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 Setup Password & Share URL  Armadillo - Free portfolio template

Share this post


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!

 

Share this post


Link to post

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

Share this post


Link to post
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 Setup Password & Share URL  Armadillo - Free portfolio template

Share this post


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!

Share this post


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