Support » Plugin: MailChimp Top Bar » Creating an hyperlink to the privacy page

  • Resolved Convospanish

    (@convospanish)


    Hello,

    I added the following code to my website to make the top bar GDPR compliant:

    add_action( ‘mctb_before_submit_button’, function() {
    echo ‘<label><input type=”checkbox” name=”AGREE” value=”1″ required> I agree to have my personal information transfered to MailChimp (more information)</label>’;
    });

    I found this code here: https://wordpress.org/support/topic/will-this-become-gdpr-compliant/

    Now, my top bar is showing the following message: (checkbox) I agree to have my personal information transfered to MailChimp (more information).

    The par that says: (more information) is an hyperlink, but how can I link this part to my privacy page?

    Thanks

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Lap

    (@lapzor)

    Hi,

    You create the privacy page under Pages > Add new and then copy the Permalink to that page. and paste that into that custom code instead of the #.

    add_action( 'mctb_before_submit_button', function() {
    	echo '<label><input type="checkbox" name="AGREE" value="1" required> I agree to have my personal information transfered to MailChimp (<a href="PERMALINK TO PRIVACY PAGE GOES HERE">more information</a>)</label>';
    });

    Hope that helps. If you have any questions, please let us know!

    Yes, it helps. Thank you!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.