Support » Plugin: Email Subscribers & Newsletters - Simple and Effective Email Marketing WordPress Plugin » Redirect to custom page after clicking confirmation link

  • How can I redirect people to a custom page when they click the confirmation link, instead of them getting redirected to the home page?

    And is there a way to send them directly to the custom page without going through the screen that says they will be redirected in 10 seconds?

    Or almost as good, how can I change the redirect time to 1 second, and then send to a custom page?

    I want to send them to a custom page for analytics.

    Thank you.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Mansi

    (@mansi-shah)

    @taylormade,

    Currently it is not possible. But we have plans to add an option in which you will be able to set a custom page to redirect users after subscribing or unsubscribing.

    That will be excellent. Thank you for your reply and an excellent product.

    Hi @mansi-shah,

    Do you have an ETA on when will this feature be available?

    Thanks,
    Minh

    In the mean time, if you want to redirect users after they submit the form, you can add this JS block to the page where the form is located:

    jQuery(document).ready(function(){
        var submit_btn = document.getElementById("es_txt_button_pg");
        // Remove the default onclick event handler
        submit_btn.onclick = null;
        
        // Add custom handler on click event
        submit_btn.addEventListener('click', function(){
            var result = es_submit_pages(event, window.location.href);
            if(result === undefined){
                setTimeout(function(){
                   window.location.href = 'URL you want to redirect users to';
                }, 2000);
            }
            return result;
        })
    });
    
    • This reply was modified 3 years, 2 months ago by Minh Nguyen.
    Plugin Contributor Mansi

    (@mansi-shah)

    @ducminhn,

    I don’t have any ETA as of now. But I’ll inform here once the feature is live.

    Plugin Contributor Mansi

    (@mansi-shah)

    @taylormade,

    That will be excellent. Thank you for your reply and an excellent product.

    You are welcome.
    Consider giving product 5-star rating if you are happy with it 🙂

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Redirect to custom page after clicking confirmation link’ is closed to new replies.