Shopify themes, liquid, logos, and UX
Image below is my robots.txt I have just created from the Shopify template. However, the image at the very bottom shows the errors and I am not sure how to fix this on my robots file. Shouldn't there be 'allow' and 'disallow' on this coding
Solved! Go to the solution
This is an accepted solution.
If you want to add specific rules like 'allow' or 'disallow', you’ll need to insert them within the loop that processes the rules. Here’s an example of how you can add those:
{% for rule in group.rules %}
{{ rule | replace: 'Disallow:', 'Disallow: /path' }}
{{ rule | replace: 'Allow:', 'Allow: /path' }}
{% endfor %}
If you have specific paths you want to allow or disallow, you should specify them explicitly within the rules section. If you just want the default behavior, Shopify might handle it automatically, but you can manually adjust it if needed.
If this fixed your issue, likes and accepting as a solution are highly appreciated
| Build an online presence with our custom-built Shopify Theme: EcomifyTheme
| Check out our reviews: Trustpilot Reviews
| We are Shopify Partners: EcomGraduates Shopify Partner
This is an accepted solution.
If you want to add specific rules like 'allow' or 'disallow', you’ll need to insert them within the loop that processes the rules. Here’s an example of how you can add those:
{% for rule in group.rules %}
{{ rule | replace: 'Disallow:', 'Disallow: /path' }}
{{ rule | replace: 'Allow:', 'Allow: /path' }}
{% endfor %}
If you have specific paths you want to allow or disallow, you should specify them explicitly within the rules section. If you just want the default behavior, Shopify might handle it automatically, but you can manually adjust it if needed.
If this fixed your issue, likes and accepting as a solution are highly appreciated
| Build an online presence with our custom-built Shopify Theme: EcomifyTheme
| Check out our reviews: Trustpilot Reviews
| We are Shopify Partners: EcomGraduates Shopify Partner
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025