Home › Forums › WoodMart support forum › Pop-up window with a ContactForm problem

Pop-up window with a ContactForm problem

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #731371

    rafgal
    Participant

    In my WoodMart theme, I have a popup defined—titled “Ask about the product”—which contains a ContactForm. I would like to trigger this popup via a link on the product template; however, doing so requires the ID of the popup element I created. Unfortunately, I cannot find where this ID is located. I have attached some screenshots.

    Best regards,
    Rafal.

    Attachments:
    You must be logged in to view attached files.
    #731400

    Aizaz Imtiaz Awan
    Keymaster
    Xtemos team

    Hello,

    You don’t need the popup ID for this. WoodMart popups are opened by the triggers set in the popup’s own settings. To open the popup from a link, use the On Selector Click trigger with a CSS class:

    1. Navigate to Dashboard -> Popups and edit the “Ask about the product” popup.
    2. Open the popup settings and go to the Triggers section.
    3. Enable On selector click and enter a CSS selector, for example, .ask-product-popup.
    4. In the Conditions section, make sure the popup is allowed on product pages and save the popup.
    6. Edit your product template and add the CSS class ask-product-popup (without the dot) to the link or button that should open the popup:

    If you add the link as custom HTML, you can write it like this:
    Ask about the product.

    The popup will then open when a visitor clicks that link on the product page.

    You can find more details here:
    https://woodmarttheme.com/docs/popup-builder/
    https://woodmarttheme.com/docs/triggers/

    Best Regards

Viewing 2 posts - 1 through 2 (of 2 total)