Email Before Download
raw code instead of shortcode? (2 posts)

  1. greaterlight
    Posted 2 years ago #

    I would like to place the form in the header of a website and the shortcode isn't working. can you provide me with raw pho code to display the contact form in the header of as ite please?
    Thank you


  2. mandsconsulting
    Plugin Author

    Posted 2 years ago #

    Hi greaterlight,

    Thanks for the interest in our plugin.

    Maybe you can try to create some test posts (and then later delete them); after you create a test post, go to the source code of the generated page, and copy the HTML that you need.
    The HTML that you will need comes from two <div>’s. The first looks like this:
    <div id="wpcf7-f17-p18-o1" class="wpcf7"> … </div>

    And (*this is very important*) you should copy and paste the next div that looks like:
    <div id="wpm_download_2" style="display:none;"> … </div>

    Alternately, you can try to use this PHP code in your header template:
    do_shortcode('[email-download download_id="1" contact_form_id="17"]')

    Hopefully this will help.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Email Before Download
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic