Add class and target to button

Hi Team,

I installed the foobox plugin because i’m trying to add a button(link) to an page that opens in an iframe lightbox. The plugin makes it pretty simple.

My question is… I’m having trouble inserting the link and target with the BB button moduule.

Here is a sample of the code I need to add as the link:

https://contractoros.net/kb-test” class=“foobox” target=“foobox” data-height=“900” data-width="1400

As you can see I need to be able to add the class, target, and width/height to the link.

Is there any way you can suggest I can accomplish this for a button on the site.

Not sure how to paste the link in the button URL. Can’t select a custom target. I know i could add the class in the advanced tab. But everything I try just doesn’t work.

I know I could make it a text link or use an image without issue but I’d really like it to be a button from the theme if possible.

Thanks for any insight.

Dave

Hey Dave,

Sorry to say but adding a target attribute to our Button module isn’t currently possible. Do you have to use that specific plugin? I’ve tried using Popup Maker before and it works fine. How it works is you just need to set a custom class that triggers the popup on the plugin itself. You can give it a shot if you want. :slight_smile:
https://wordpress.org/plugins/popup-maker/

Ben