Skip to content
Docs and guides

Help Center

Step-by-step guides for every setting in App Studio.

Web overrides

Updated

Web Overrides change how your website behaves inside the app, without changing what people see in a browser.

CardWhat it does
User agentTells your server that a page loads in the app
JavaScript bridgeLets your pages call native features
Custom headersAdds HTTP headers when the app loads your pages
Shopify theme add-onHides your store's header and footer in the app (Shopify stores; available with our next Shopify app update)
Custom CSSRestyles your pages inside the app
Cookie persistenceKeeps people signed in between launches
Custom JavaScriptRuns your script on every page
URL redirectsOpens another page instead of one that matches
Text replacementChanges words on your pages, in the app only

The preview shows your changes (press Rebuild preview to load the page again with new CSS or JavaScript), and installed apps get them with your next build.

User agent

By default the app adds AppSorcerer to the phone's normal user agent, so your server and scripts can recognise the app. See User agent.

JavaScript bridge

Your pages can use haptics, sharing, push, the status bar and every plugin you add. Only pages that match Allowed URLs may call it (empty = your own domain). See JavaScript bridge.

Custom headers

Add headers such as X-App-Platform to the requests for your pages. Values can use these variables:

VariableBecomes
{platform}android (or ios)
{version}the app version, like 1.0.4
{deviceId}a random ID per installation
{language}the phone's language, like en

New apps send X-App-Platform: {platform} and X-App-Version: {version}. Headers are added when the app loads a page of your domain: the first page, links people tap, tabs and menu items. Images, scripts, fetch / XHR calls and form posts don't carry them; check the user agent there instead.

Shopify theme add-on

Shopify stores only, available with our next Shopify app update; until then, hide the header with Custom CSS below. Switch on the AppSorcerer app embed in your theme editor to hide your store's header, announcement bar and footer inside the app, without CSS. Open theme editor takes you straight there. See Hide the web header.

Custom CSS

CSS that is added after each page loads, for example to hide your website's own header and footer inside the app. Use the Shared tab for both platforms, or the iOS and Android tabs for one. See Hide the web header.

On by default: cookies are kept on the phone, so people stay signed in when they open the app again. Turn it off to clear cookies when the app closes.

Custom JavaScript

A script that runs after each page loads, before the splash screen hides. See Custom JavaScript.

URL redirects

Send people to another page when they open one that matches. From uses the same patterns as link rules (* matches anything); To is a path on your site or a full address. Redirects are checked from top to bottom before your link rules, for links people tap, tabs, menu items, push notifications and deep links. The app follows at most 3 redirects in a row. You can add up to 50.

redirects.txt
From: example.com/old-sale/*      To: /collections/sale
From: */pages/download-our-app    To: /

Text replacement

Change text on your pages inside the app only, for example to hide Download our app or to rename Visit our shop. The match is exact and case-sensitive, in the visible text of the page — never in links, form fields or code — and also applies to text the page adds later. Leave Pages empty to replace the text everywhere, or limit it with path patterns like /products/*. Leave the replacement empty to remove the text. You can add up to 50.

Was this helpful?