How to set all external link as Nofollow?

Topic summary

A user seeks to add rel="nofollow" attributes to external links (specifically logos in an “as seen on” homepage section) but cannot find a built-in Shopify option.

Initial Solution Provided:

  • Navigate to Online Store > Themes > Actions > Edit Code
  • Locate external links in theme.liquid and manually add rel="nofollow" to each <a> tag

Actual Resolution:

  • The original poster found no links in theme.liquid (using a non-default theme)
  • Successfully resolved by editing the specific section file (logo-bar.liquid) directly

Follow-up Questions:

  • One user asks how to modify social media links (Facebook) from rel="noopener" to rel="nofollow" in social-media.liquid—solution provided: simply replace the attribute value
  • Another user mentions having ~126 external links without theme file access and asks if bulk/alternative methods exist

Status: The core issue is resolved for custom themes via section file editing, but the question about bulk changes without code access remains unanswered.

Summarized with AI on October 26. AI used: claude-sonnet-4-5-20250929.

Recently I am designing https://irepart.com and there’s a section on Homepage called as seen on where I have included some famous websites’ logos with links. But I didn’t find any option to set them as nofollow. I tried to find the Shopify community and Google but I am disappointed and didn’t any solution.

Could you please inform me how to set all external links as nofollow?

Hello @tariqurrah

  1. Go to your Shopify admin dashboard and click on Online Store > Themes.
  2. Click the “Actions” dropdown menu for the theme you want to edit and select “Edit Code”.
  3. In the left-hand sidebar, click on the “Layout” folder and select the “theme.liquid” file.
  4. Find the section of code where your external links are located, and add the rel=“nofollow” attribute to each link tag as shown in the example above.
  5. Save the changes, and the external links on your website should now be set as nofollow.
[Example Website](https://example.com)

Thank you for your reply but unfortunately, I didn’t find any link inside theme.liquid file. However, I fixed it by adding rel=“nofollow” inside the section file in my theme called logo-bar.liquid as I am not using the default Shopify theme.

Could you please help me. Please find my code from social-media.liquid:

{%- capture social_media -%}
{%- if settings.social_facebook != blank -%}

  • {%- render 'icon' with 'facebook' -%}
  • What should I change in the code correctly to make Facebook link No Follow? Thank You very much!

    I am extremely sorry for late. I can see the Facebook link is set as No Opener. But if you want to change it to No Follow then just need to change from rel=“noopener” to rel=“nofollow”. Full code should be look like below

    {%- capture social_media -%}
    {%- if settings.social_facebook != blank -%}
    - {%- render 'icon' with 'facebook' -%}
    
    

    Hello, I do not have access to the theme design files (For https://bryghtenup.com/ ). and I have approximately 126 external links pointing outside within the Site. Isn’t there a different way I can make all links Nofollow?

    Hi @ibrahimf :waving_hand: there’s no such preference for the online-sales channel.
    So it’s either customize each link in the editor and or logic to change the links, or edit the content itself (such as for pages)

    edit: Or use javascript AFTER page finishes loading, keeping mind when javascript isn’t running this wont work. Mileage varies on SEO crawl bots supporting this.

    Or as a very advanced kludge use a capture tag on the {{ content_for_layout }} etc and parse the entire rendered output for urls/links that don’t match the domain, then parse the HTML to add the attributes.
    This can have a performance impact.

    Thank you . I’ll have to work on this one by one. Let me get started.

    addendum; there’s also doing this with javascript but IF this is for SEO/crawl-bots you’d need to verify that search engines support for such things.

    Hi @tariqurrah,

    This is Sophia from Tapita AI SEO & Speed Optimizer.

    Here’s how you can set external links as nofollow:

    • Online Store → Themes → Edit code → Homepage
    • Ctrl F to find your link
    • For each link, add rel=“nofollow” like this:
    <a href="https://example.com" target="_blank" rel="nofollow">
      <img src="logo.png" alt="Example Logo">
    </a>
    
    • Save your changes.

    Or when you’re blogging, you can use an app like our Tapita AI Blog Builder, which lets you set links as dofollow, nofollow, or other types, no code editing required.

    Hope this helps!