Hi,
I can’t find the option to redirect to a new page after subscribing with Mailchimp Widget (just like we can do it in a page with the “Mailchimp subscibe” element)…?
Can you help please?
Thanks!!!
Hey Wazzabi,
Here are some threads that might help you:
https://kriesi.at/support/topic/how-to-get-an-opt-in-form-to-redirect-to-new-page-for-facebook-pixels/#post-697435
If you need further assistance please let us know.
Best regards,
Victoria
Thanks, but my issue is different…
The problem is that there’s no option to fill the “data-avia-redirect” in the “Appearance > Widgets > Enfold Mailchimp Newsletter Signup”
I need to redirect to a new page after signing in…
Please help!
Hi Wazzabi,
You can add this attribute by JavaScript or you can redirect by using JavaScript. Do you need help with that?
Best regards,
Victoria
Yes I’a like to add this attribute. Yes I’d like some help for javascript, please…
Regards,
Hi,
Please add the following script in the functions.php file.
// redirect mailchimp
function ava_custom_script_mod(){
?>
<script>
(function($){
$('.av-mailchimp-widget').on('click', function() {
$('body').on('av_resize_finished', function() {
var redirect = 'PAGE URL HERE';
location.href = redirect;
});
});
})(jQuery);
</script>
<?php
}
add_action('wp_footer', 'ava_custom_script_mod');
Modify the “redirect” value.
Best regards,
Ismael