Appbrew resource center
  • Overview
  • Scope of support
  • Roadmap (Q2 2024)
  • Setup
    • App listing
      • Create a Google Play developer account
      • Share access to Play Console
      • Reset Android signing keys on the Play Store
      • Create an Apple developer account
      • Share access to Apple developer account
  • Manage
    • Orders
    • Products
      • Enable Products for Appbrew Sales channel
    • Customers
      • Customer login
      • Enable multipass login on the Shopify Store
    • Store policies
    • Shipping and delivery
      • Estimated Delivery Date
    • Checkout
    • Integrations
  • Merchandising
    • Overview
    • Themes
    • Design blocks
    • Custom page
    • Guide for image dimensions
    • App web-view
      • Control web elements in app webview
  • Growth
    • Discounts
      • Create app-only coupon code
      • Create app-only bulk discounts
    • Marketing
      • Segmented push notifications using Firebase
      • Enable Safari smart banner
      • Create dynamic link using Firebase
    • Analytics
      • Integrations
        • Google Analytics
          • Create a Firebase account
          • Configure GA property linked to the app
          • Tracked events
          • Link Google Analytics to Google Ads
        • Facebook Ads
          • Setup a Facebook developer app
          • Tracked events
          • Setup event tracking for Ads
        • Clevertap
        • Moengage
        • Contlo
        • Klaviyo
        • Webengage
        • Netcore
        • AppsFlyer
  • Migrating to Appbrew
  • Setup purchase pixel
Powered by GitBook
On this page

Was this helpful?

  1. Merchandising
  2. App web-view

Control web elements in app webview

PreviousApp web-viewNextDiscounts

Last updated 7 months ago

Was this helpful?

To display web content in the app without web headers, please follow the below steps

  1. Navigate to ‘Online Store’ on your Shopify Admin

  2. Click on the three dots to open more options on your live theme.

  1. Click on Edit code

  2. Click on Layout → Add a new layout

  3. Select Theme.liquid

  4. Add Appbrew to file name

  1. Replace the code with the below snippet

Make sure you replace the font and css file as per your store

<!doctype html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="color-scheme" content="light dark">
    <title></title>
    {%- liquid
      render 'css-variables'
      render 'fontfaces'
      echo 'base.css' | asset_url | stylesheet_tag: preload: true
    -%}
    {{ 'custom.css' | asset_url | stylesheet_tag }}
    {%- if template == 'index' -%}
      {{ content_for_header }}
    {% endif %}
  </head>
  <body>
    {{ content_for_layout }}
  </body>
</html>
  1. Click on template → Add a new template

  2. Select template type to page and 'JSON'

  3. Enter the code below

{
  "layout": "theme.appbrew",
  "sections": {
    "main": {
      "type": "main-page",
      "settings": {
        "padding_top": 28,
        "padding_bottom": 28
      }
    }
  },
  "order": [
    "main"
  ]
}

Once the above steps are configured, use ?view=appbrew at the end of your custom page url.