This tutorial only applies if your theme is built for Online Store 2.0 experience.
Recently Shopify announced app block extensions for themes which allow developers to extend themes in a way that protects theme code integrity and provides better app development and merchant experiences.
In order to embed the Back in Stock Email button in areas where your theme allows app blocks, firstly you need to make sure your theme supports app block extensions.
1. Open your theme using an online theme editor. (Shopify Admin > Online Store > Themes > Current theme > Customize)
2. Navigate to the template where you would like to embed the Email button. For this demo, we will be embedding an Email button on of stock product page.
3. Select out of stock product
4. Click "Add to block" and choose our app
5. Drag the button to wherever you prefer the button
6. Click save
7. If you want to remove the app block, you can also remove it and then save it.