Hello,
Unfortunately this is not possible – your users will have to opt-out using the link at the bottom of your emails that get sent out.
There is no way to ensure that the proper email address is unsubscribed from a mailing list. Otherwise anyone could un-register anyone elses email addresss, and MailChimp does not provide a way to “double opt-out” – similar to how they do double opt-ins.
Thanks,
Evan
Evan,
Thank you.. Maybe I should be clear… I just need to find a way to add a button to opt-out of signing up and going to the site main page.
I could be over thinking this…..
Thanks!
I’m not sure I understand. To my knowledge there is no way to generate an “opt-out” link.
So, when people visit http://www.thepikeys.com/ a landing page of http://www.thepikeys.com/go/free-music is displayed. My client has asked for an option for the visitor to skip the page and go to the normal site main page – http://www.thepikeys.com/index.php
Using the built in hooks and filters, you could easily hook in and display your own custom button – that simply links to the main site.
Example:
function generate_skip_optin_button() {
echo wp_kses_post( '<a href="http://www.thepikeys.com/index.php" class="skip-optin">Continue</a>' );
}
add_action( 'yikes-mailchimp-after-form', 'generate_skip_optin_button' );
You’ll need to add that to your themes functions.php file to hook in and generate the button in the correct location – which should show up just below the form.
Let us know if that helps!
Thanks,
Evan
Hello,
Please forgive me – I don’t know PHP. It appears that code is not correct. It breaks the site. I asked my theme developer and he state code is not right.
Any help appreciated!
What exactly breaks the site? I just re-tested and things seem to be ok on my end.
Evan
Plugin Contributor
Tracy Levesque
(@liljimmi)
🏳️🌈 YIKES, Inc. Co-Owner
If the code is breaking the site, it’s probably from not being in the right place in your functions.php file inbetween the php opening and closing tags.
Instead of editing the functions.php file of your active theme, you can use this plugin https://ww.wp.xz.cn/plugins/my-custom-functions/
That will put the code in the right place and not crash your site.
Thank you!
-Tracy
Ok, so I added that via the plugin listed above and see no button. On the page, I have:
[yikes-mailchimp form=”2″]
Do I need to add something?
The page can be viewed here –
I can see the ‘Continue’ link at the following URL – in the popup:
http://www.thepikeys.com/go/free-music
You can style the link to appear more like the get free music button – but that would require additional classes etc. It seems to be working well, none-the-less.
Evan