Tagged: button
-
AuthorPosts
-
December 11, 2018 at 11:27 pm #1044038
Hi all,
I’m trying to add in some Java Script to create a lightbox popup of an order form from Ontraport. Sadly, whenever I try to place this code on an Enfold Button, the button’s code seems to cancel out the Java Script. I’ve been using the Code Block element to place in the JS, and then tried adding in the button through my custom button code, your button shortcode (from the documentation), and just putting in “[av_button]” where the JS trigger text should be; none of these worked.
This is the code for the JS from Ontraport:
<a style=' font-size: 1.5em;text-transform: uppercase;text-decoration: none;font-family: Arial, Helvetica, sans-serif;padding: .3em .6em;letter-spacing: .05em;color: #333;' href='javascript://' data-opf-trigger='p2c184280f16'>Register Now!</a><script type='text/javascript' async='true' src='https://app.ontraport.com/js/ontraport/opt_assets/drivers/opf.js' data-opf-uid='p2c184280f16' data-opf-params='borderColor=#fff&borderSize=5px&formHeight=1620&formWidth=60%&popPosition=mc&instance=599315932'></script>
Where it says “Register Now!” I would like to put the Enfold Button.
Any help would be appreciated!
Quinn
December 13, 2018 at 10:45 am #1044792Hey KennethPlay,
Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?
Can you please point us to the page where it is added?
Best regards,
VictoriaDecember 13, 2018 at 11:27 pm #1045061Hi Victoria,
Access info below.
This will apply to almost every page of the site, but we can start with the Homepage, where the “All Access Pass” button / “click me” button are (former being the theme’s button element, latter being the code block).
(As a heads up, the site’s content is 18+ / sex education material.)December 14, 2018 at 10:04 pm #1045464Hi KennethPlay,
You might want to create a shortcode with this code, if you want to use it on many pages.
Something like in this thread
https://wordpress.stackexchange.com/questions/111451/creating-a-shortcode-in-a-plugin-that-includes-jsBest regards,
VictoriaDecember 14, 2018 at 10:12 pm #1045469Hi Victoria,
Gotcha. And the shortcode would enable us to just CSS code the button itself, without needing to add a link to direct it?
December 17, 2018 at 3:27 pm #1046330Hi KennethPlay,
No, the shortcode will alow you to add the button on any page in a codeblock and then with the css you can style it the way you need.
If you need further assistance please let us know.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.