Jump to content

cavitee

Member
  • Posts

    2
  • Joined

  • Last visited

Everything posted by cavitee

  1. $('[href*="amazon.com"],[href*="ebay.com"]').attr('rel','nofollow'); }); Sorry i misplaced the inverted comma (after ebay.com"]*
  2. Hi, I wonder if anyone can help me with a code which can nofollow multiple root sites. For example there are various pages i mention 2 different sites (ebay and amazon) which i want to set as nofollow. Can i just follow the same script but place "amazon.co.uk" (and a comma or something) before putting "ebay.com" like below? <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js"></script> <script> $(document).ready(function() { $('[href*="amazon.com"],'[href*="ebay.com"]).attr('rel','nofollow'); }); </script>
×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.