• Resolved carmen t

    (@carmen-tomas-verdera-alba)


    Hello, I have created a pop up where customers have to click to accept a condition, but after click the button to acept, I ondt want to redirect the page to anywhere, i just want the customer to be able to stay in that page.

    So what do I have to put in the field of Redirect URL? Thank you

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    Hi @carmen-tomas-verdera-alba,

    You can add your page URL followed with a hash symbol(#), ie for example:
    abc.com//tienda-vinos-cigales/#

    Where abc.com is just an example, you’ll have to replace that with your website URL.

    I hope this helps. Have a nice day ahead.

    Best Regards,
    Nithin

    Thread Starter carmen t

    (@carmen-tomas-verdera-alba)

    Hello and thank you but the problem is that I want to include this pop-up in several pages (8 more), so what should I do then? do I have to do a pop up for each page?
    Thank you

    Plugin Support Nebu John – WPMU DEV Support

    (@wpmudevsupport14)

    Hi @carmen-tomas-verdera-alba,

    I am afraid, this is not possible out of the box.

    However, please try the following code, it dynamically changes the redirect URL.

    function wpmu_hook_javascript() {
        ?>
            <script>
            jQuery(document).ready(function($) {
              var pageURL = jQuery(location).attr("href"); 
    	  jQuery(".hustle_module_id_1 .hustle-button-cta").attr("href", pageURL+"#");
            });
            </script>
        <?php
    }
    add_action('wp_head', 'wpmu_hook_javascript');

    Please note, hustle_module_id_1 in the code is dynamically created and is unique for each form. You have to change that with the class from your form. Make sure to test the code on a staging site before using it on a production website.

    You can add this code inside your child theme’s functions.php file or use it as a mu-plugin. If you do not have a child theme, please see here how to create it.

    Let us know how it went!

    Regards,
    Nebu John

    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @carmen-tomas-verdera-alba

    I hope you are doing well and safe!

    We haven’t heard from you in a while, I’ll mark this thread as resolved.

    Feel free to let us know if you have any additional question or problem.

    Best Regards
    Patrick Freitas

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Redirect URL Call to Action’ is closed to new replies.