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 5 posts - 1 through 5 (of 5 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

    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 3 days, 16 hours ago by tim.
    #683513

    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

Tagged: 

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