Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
I had a new staff member attempting to block a customer from ordering, somehow she ended up in the theme code, she thinks, on her phone...
Now the homepage wont load, I may catch a quick glimpse before it is hijacked to this:
https://facemaster.ca/account/login?return_url=%2Faccount
Not a true redirect.
We have no login requirements in the preferences, and I cannot figure out how to stop the homepage from being hijacked by this script. The index.liquid looks fine to me
<div class="index-sections">
{{ content_for_index }}
</div>
I am totally lost and don't want to break it further. The rest of the site works just fine, menus and navigation are good. PLLEEEASE help
OK I see a string she entered in the code when I look at view source, however I cant figure out how to delete it using shopify interface
{%- if customer and customer.tags contains 'blocked' -%} <script> sessionStorage.setItem("blocked", "true"); window.location.href = "/account/logout?return_url=%2Faccount"; </script> {% endif %} {%- if template contains 'login' -%} <script> const blocked = sessionStorage.getItem("blocked"); if (blocked) { alert( "You're not allowed to log in. Please contact us for more information" ); sessionStorage.clear(); } </script> {% endif %}
I think I have it Jimmy rigged for now...
Learn 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, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025