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
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025