Horje
WP Email Capture in WP PopUp Scheduler - Wordpress Solution
Hi, I'm using Templatic's Emporium theme and want to know how to insert WP Email Capture within the WP Pop Up Scheduler. Where, what, and how do I insert? (For people to be able to enter their email address directly into the pop up)

Solution - 1

There are few changes you will have to make to be able to display WP Email Capture form in WP Popup scheduler. First add the following in wp-email-capture/wp-email-capture.php on line 27:

function wp_email_capture_in_popup($atts) {
    $form = preg_replace("/[\n\r]/", "", wp_email_capture_form_page());
    $form = addslashes($form);
    return $form;
}
Then add the following in same file on line 46:
add_shortcode('wp_email_capture_popup', 'wp_email_capture_in_popup');
Then insert the following in wp-popup-scheduler/wp-popup-scheduler.php after line 556:
$popup_content = do_shortcode($popup_content);
After making the above changes you can use the following shortcode anywhere in your popup content and the WP Email capture form will be displayed there.
[wp_email_capture_popup]
Hope this helps.





Wordpress

Related
Problem with Tweetable plugin - Wordpress Solution Problem with Tweetable plugin - Wordpress Solution
My home page and sidebar content is cut off  - Wordpress Solution My home page and sidebar content is cut off - Wordpress Solution
Title Duplication Warning - Wordpress Solution Title Duplication Warning - Wordpress Solution
Twitter Plugin that only shows users tweets - Wordpress Solution Twitter Plugin that only shows users tweets - Wordpress Solution
FeedWordPress images - Wordpress Solution FeedWordPress images - Wordpress Solution

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7