Home Forums WoodMart support forum Call a custom ID in a promo banner or button

Call a custom ID in a promo banner or button

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #195334

    abbi0991
    Participant

    Hi,
    I have added a custom widget js to my website and I want to call it when I click a promo banner or a button. In wordpress usually I would add the following tag [button id=”gift-card-widget” type=”primary” newtab=”on” ]View More[/button] but im not sure how to do that in woodmart.

    #195341

    Artem Temos
    Keymaster

    Hello,

    To add a button element you need to use our WPBakery Button element. The example you sent is just a shortcode from some other theme, it is not a WordPress standard feature.

    Kind Regards

    #195346

    abbi0991
    Participant

    Hi Artem, Thank your for the response. I understand that the shortcode is from some other theme. What im trying to do is call an id instead of a link. Im not sure for to do that. I tried using the button element but I was unable to may it work successfully. Could you share an example of how it can be done?

    #195347

    Artem Temos
    Keymaster

    You can specify ID as a URL for the button element. For example #gift-card-widget. This will generate HTML like this <a href="#gift-card-widget">Button</a>.
    Or if you need an ID tag to the button itself, then it would be easier to place it as a plain HTML since there is no ID attribute for our WPBakery button element.

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