Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #21388

    I am trying to embed javascript webforms into my pages, this works however the visual page editor sometimes disables this code. To try and avoid this I was trying to use the short code exec PHP plugin to use a short code in the page instead. This plugin works well for adding contacts names etc. into the text, using this code:

    echo $_GET;

    however when I place this code in:

    echo ‘<script type=”text/javascript” src=”https://vf116.infusionsoft.com/app/form/iframe/333deacf6c499f7f8c4ae02a4422a5fa”></script>’;

    The page displays the webform always at the top of the page and not were the short code has been placed. Can you please help me?

    #111651

    Hi!

    Can you post a link to the webform page please? I’d like to investigate the source code.

    Best regards,

    Peter

    #111652

    One example would be this page where I am currently having to use the code directly instead of the PHP shortcode:

    http://www.newleafes.com/events/mastering-influence-for-marketing-and-selling/

    #111653

    Hi AMLAccount,

    Do you have an example where you’ve added in the code that shows the issue (and not the workaround you are doing to overcome the issue)?

    Regards,

    Devin

    #111654

    Yes, I have just created this page:

    http://www.newleafes.com/test-page/

    This is the code:

    This is a test page and my webform should display under here:

    [do_bookmims]

    #111655

    Can you try switching to one of the default wordpress themes and seeing if the same thing happens there? Either Twenty Eleven or Twenty Twelve will work for testing.

    Regards,

    Devin

    #111656

    I have switch to the 12 theme and the test page shows in the same way, with the webform at the top of the page above the text.

    #111657

    In that case its an issue with the plugin that outputs the shortcode. You’ll need to talk to the developer of it and see if they can assist with a fix.

    Regards,

    Devin

    #111658

    OK – Thank you.

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

The topic ‘Short Code EXEC PHP always places code at the top of the page.’ is closed to new replies.