Home Forums WoodMart support forum Is there a way to trigger popup button with a link

Is there a way to trigger popup button with a link

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #683287

    tim
    Participant

    Hi guys,

    On my website hero section, I have a button pop-up that I built with html block. Is there a way I can trigger that pop-up with a link or CSS class

    Best regards,
    Tim

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

    Aizaz Imtiaz Awan
    Keymaster
    Xtemos team

    Hello,

    You need to add the custom link with # in Appearance > Menus and assign the CSS class woodmart-open-newsletter to that menu item: https://prnt.sc/UayAt4FrlUd7

    Then, in Woodmart > Header Builder add the menu . Finally, ensure the Promo Popup is enabled in Theme Settings > Promo Popup.

    Best Regards,

    #683406

    tim
    Participant

    But the link is not a menu item, it’s a normal <a tag in the description

    • This reply was modified 9 months, 3 weeks ago by tim.
    #683513

    Aizaz Imtiaz Awan
    Keymaster
    Xtemos team

    Hello,

    You can directly add the woodmart-open-newsletter class to your <a> tag, like this:

    <a href="#" class="woodmart-open-newsletter">Open Popup</a>

    See Screenshot for better understanding:
    https://postimg.cc/TLqhtMwX
    https://postimg.cc/VdDrhSkT

    Best Regards,

    #684002

    tim
    Participant

    Thanks, this works.

    However, I currently have different popups like this on multiple pages. Is there another way to link a HTML block popup to a link without this woodmart-open-newsletter class

    #684108

    Aizaz Imtiaz Awan
    Keymaster
    Xtemos team

    Hello,

    Sorry, but there isn’t any option in the Theme Settings for this. To achieve it, you would need to edit the product description with a page builder like Elementor and add the pop-up widget directly there. This way, you can use the pop-up inside the product description.

    Best Regards,

    #684174

    tim
    Participant

    Okay

    #684199

    Aizaz Imtiaz Awan
    Keymaster
    Xtemos team

    Hello,

    Thanks for understanding! If you need further assistance, we are always here to help you.

    If you have a minute, we’d truly appreciate your feedback — it helps us improve the product and shape future updates more effectively. We’d love your feedback on our theme: https://tally.so/r/w4l54k

    Thanks for contacting us.
    Have a great day.

    Topic Closed.
    Best Regards,

Tagged: 

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

The topic ‘Is there a way to trigger popup button with a link’ is closed to new replies.