Canvas Themes: Link the Withdrawal Page
Shopify’s new theme editor Canvas does not support app blocks yet, so the Inline Form block is not available there. Use the Hosted Withdrawal Page instead: the app already serves it at /apps/withdrawal in every store, without any theme work.
Goal: A highlighted “Cancel contract” button in your footer opens the withdrawal form.
Time: approx. 5 minutes.
Step 1: Check the Withdrawal Page
Open https://<your-shop-domain>/apps/withdrawal in your browser, e.g. https://your-shop.myshopify.com/apps/withdrawal. You see your theme’s header and footer, the heading and the withdrawal form.
The page needs no setup. It exists as long as the app is installed.
Step 2: Add the Footer Link
Menus are managed in the Shopify admin, independent of the theme editor:
- Go to Online Store > Navigation.
- Open the menu your footer shows (usually Footer menu).
- Click Add menu item.
- Name: e.g. “Cancel contract”. Link:
/apps/withdrawal. - Click Save menu.
Open your store and check that the link appears in the footer. If it does not, select this menu in your footer’s settings in the theme editor.
Step 3: Highlight the Link as a Button
The CSS below turns every link to /apps/withdrawal into a button. The link keeps working, only its appearance changes.
- Open your theme in the theme editor.
- Open the custom CSS setting: for the whole theme, or for the footer section only. With the footer section, only the footer link becomes a button; with the whole theme, every link to the page does (e.g. also in the header menu).
- Paste:
body a[href*="/apps/withdrawal"] {
display: inline-block;
padding: 10px 24px;
background: #000000;
color: #ffffff;
border-radius: 8px;
font-weight: 600;
line-height: 1.2;
text-decoration: none;
}
body a[href*="/apps/withdrawal"]:hover {
opacity: 0.85;
}
- Save.
Adjust the colors (background, color), the size (padding) and the corners (border-radius) to your design. If your editor has no custom CSS field yet, skip this step: the plain footer link works the same way.
Step 4: Test
- Open your store in an incognito window.
- Click the button in the footer.
- The withdrawal page opens with the form. Submit a test withdrawal if you like and check that it appears in the app.
Optional: Button on the Thank You Page
The Thank You Page Button is a checkout extension and works independent of the theme editor. Set its Form page path to /apps/withdrawal so it opens the hosted page.
FAQ
Can I set the page language?
Yes. /apps/withdrawal?locale=de always opens German, /apps/withdrawal?locale=en always English. Without a parameter the page follows the storefront language. See Hosted Withdrawal Page.
The link is not styled as a button. What now?
- Check that the menu item links exactly to
/apps/withdrawal. - Check that the CSS is saved in the published theme.
- If your theme’s own link styles win, add
!importantto the values, e.g.background: #000000 !important;. - Test in an incognito window.
Can I use the Inline Form later?
Yes. Once Canvas supports app blocks, you can switch to the Inline Form. The hosted page keeps working in parallel.