Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #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

    #1044792

    Hey 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,
    Victoria

    #1045061

    Hi 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.)

    #1045464

    Hi 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-js

    Best regards,
    Victoria

    #1045469

    Hi Victoria,

    Gotcha. And the shortcode would enable us to just CSS code the button itself, without needing to add a link to direct it?

    #1046330

    Hi 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

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.