Back to Help Center

Adding a custom AR button to your Shopify theme

Put a Vizbl block into your Shopify theme, so the AR button sits in your page layout and looks like part of your store.

You can add a Vizbl button to your product page template. Because it’s built into your page layout, it looks like part of your store.

Vizbl blocks are visible to shoppers only when the connector is active

You can add Vizbl blocks to your theme before you activate the connector, but they won’t show up on your storefront. In the theme editor, these blocks show a notice that starts with This block is hidden from shoppers.

To show Vizbl blocks to shoppers, activate the Vizbl 3D & AR Connector. It costs $20 per month, billed through Shopify.

Connecting the Vizbl 3D & AR Connector

Adding a Vizbl block to your product page

1. In your Shopify admin, go to Online Store.

2. Next to your current theme, click Edit theme. The theme editor opens.

3. In the template menu at the top of the editor (it starts on Home page), select Products and pick your product template — for example, Default product.

4. In the sidebar on the left, expand the section with the product title and price (Product information in the Horizon theme) and click Add block.

5. In the list that opens, click Apps and pick any Vizbl block.

6. If the button lands in the wrong spot, drag the block by its handle in the section list.

7. Click Save at the top right and check the result. If the product is linked to a 3D model, the Vizbl element appears on the page.

Linking Shopify products to 3D models

If your products use several templates, add and set up the button in each of them separately.

Vizbl blocks available in Shopify

3D viewer — an interactive 3D viewer on the product page, where shoppers can rotate the model.

Modal 3D viewer — the same viewer, opened with a button in a pop-up window.

AR link — a link to a page that opens the AR view.

Instant AR — One-click AR with extra features for iPhone users: they can place several products in the room at once and switch colors right in AR. On Android, it works as One-click AR.

One-click AR — opens the AR view right on tap, skipping any screens in between. Shoppers on a computer see a QR code that opens the AR view on their phone.

Vizbl Button — a general-purpose button with a Mode switch. It has two modes:

  • 3D & AR viewer — opens a page with the 3D view, where shoppers can switch to AR.
  • One-click AR — works like the One-click AR block.

Setting up Vizbl buttons

All Vizbl buttons except 3D viewer are set up the same way, so we’ll use Vizbl Button as the example.

Mode — 3D & AR viewer or One-click AR. Only Vizbl Button has this setting.

Product — which model the button opens. The default is Closest Product: the button shows the model linked to the current product in your Core AR dashboard.

If you choose Select Product, the button shows the same model on every page that uses this template.

Manual product — points the button at a model by its ID instead of the model linked to the product. Use it if your store doesn’t have product pages, such as a store that’s a single landing page. Turn it on and paste the model’s Object ID. To show a specific variant, also paste its Variant ID. Both are on the model’s page in your Core AR dashboard, with a copy button next to each.

The other settings control how the button looks:

  • Button text — the label on the button. The default is View in 3D & AR.
  • Hide block — takes the button off your storefront. The block and its settings stay in the template.
  • Full width — stretches the button across the product column, the way your Add to cart button does.
  • Background, Text color, Border color — hex values, for example #111111.
  • Border width, Corner radius, Font size — in pixels. Drag the slider or type a number.
  • Padding vertical, Padding horizontal — the space inside the button: top and bottom, left and right. One value each, like 12px or 1rem.
  • Viewer size type — sets whether the 3D viewer shows product dimensions in inches or centimeters. Applies only when Mode is set to 3D & AR viewer.

Get help in our Discord

Join our Discord to ask questions about these instructions or get technical support. If something isn’t working, open a ticket and our team will investigate.

Still need help?

Can’t find what you’re looking for? Our team is happy to help.