Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Evan Herman

    (@eherman24)

    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

    Thread Starter ajeffcoat

    (@ajeffcoat)

    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!

    Plugin Author Evan Herman

    (@eherman24)

    I’m not sure I understand. To my knowledge there is no way to generate an “opt-out” link.

    Thread Starter ajeffcoat

    (@ajeffcoat)

    So, when people visit https://www.thepikeys.com/ a landing page of https://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 – https://www.thepikeys.com/index.php

    Plugin Author Evan Herman

    (@eherman24)

    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="https://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

    Thread Starter ajeffcoat

    (@ajeffcoat)

    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!

    Plugin Author Evan Herman

    (@eherman24)

    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://www.ads-software.com/plugins/my-custom-functions/

    That will put the code in the right place and not crash your site.

    Thank you!
    -Tracy

    Thread Starter ajeffcoat

    (@ajeffcoat)

    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?

    Thread Starter ajeffcoat

    (@ajeffcoat)

    The page can be viewed here –

    Plugin Author Evan Herman

    (@eherman24)

    I can see the ‘Continue’ link at the following URL – in the popup:
    https://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

    Thread Starter ajeffcoat

    (@ajeffcoat)

    My bad…. Thank you!!!!!

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Add an Opt-Out button’ is closed to new replies.