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
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
Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024The Hydrogen Visual Editor is now available to merchants in Shopify Editions | Summer '...
By JasonH Sep 2, 2024Note: Customizing your CSS requires some familiarity with CSS and HTML. Before you cust...
By JasonH Aug 12, 2024