Call a custom ID in a promo banner or button
-
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.
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
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?
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.