Skip to main content

Set the Widget inside any element by Custom Embed Position

D
Written by Dharmik Valani
Updated over 5 months ago

Open Your Store URL

  1. Start by opening your Shopify store in a web browser.

  2. Navigate to the page where you want to embed the widget.

Open Developer Tools

  1. Right-click anywhere on the page and select Inspect to open the Developer Tools.

  2. Locate the element inside which you want the widget.
    ​

Find the Unique ID or Classname

  • Press CTRL+F and search for its id or Classname. Refer to this article to find the unique id/classname.

  • Copy the id or classname for later use.


Customize the Widget

  • Now, open the widget that you want to embed and customize it as per your requirements.

Open Display Condition Settings

  1. Navigate to the Display Condition settings of your widget.

  2. Go to the Embed Position section.

Add the ID or Classname

  • Paste the id/classname

    • If you copied an id, use #id_name (e.g., #header-button).

    • If you copied a classname, use .class_name (e.g., .shop-button).
      ​

Save and Publish

  • Once you've added the correct selector, save the settings and publish the widget

Final Look:

Did this answer your question?