Hi @max3322,
We have a filter you could use to remove the checkbox but it isn’t aware of the form. You would have to do it based on the current page. Let me know if you want more information about that.
Regardless, I think adding the ability to disable the checkbox for a form is a good idea and we will implement that.
Cheers,
Kevin.
Plugin Contributor
Tracy Levesque
(@liljimmi)
π³οΈβπ YIKES, Inc. Co-Owner
Hi @max3322,
Let us know if you still need help.
Thank you,
-Tracy
Plugin Contributor
Tracy Levesque
(@liljimmi)
π³οΈβπ YIKES, Inc. Co-Owner
Hello,
We haven’t heard back from you in awhile so I am going to close out this ticket.
If you need more help, please reopen it and we will be happy to help you.
Thank you!
-Tracy
Hi, I would like the method for removing the GDPR check box on one page of the website.
Thanks
max
Hi Max,
Can you send us the URL of the page you want to remove the checkbox from?
Thank you,
Kevin.
This filter will work for now
// Remove the GDPR checkbox from a specific page
add_filter( 'yikes-mailchimp-eu-compliance-checkbox-text-html', 'yikes_mailchimp_remove_GDPR_checkbox', 10, 1 );
function yikes_mailchimp_remove_GDPR_checkbox( $checkbox_text ) {
global $post;
// Remove checkbox from /join/ page (ID = 608)
if ( $post->ID === 608 ) {
return '';
}
return $checkbox_text;
}
Are you familiar with custom PHP code? Are you able to add this to your website? Let us know if you need any help.
We’ll try to add a better filter and per-form control in the future.
Cheers,
Kevin.
Thanks Kevin,
I’m a bit new to PHP code, though can add it to my website.
Could you let me know which .php file should I add this too?
Thanks
The best place to add this file is to your child theme’s functions.php file. If you’re not using a child theme then you can add it to your theme’s functions.php file or you can use a plugin like My Custom Functions.
I hope that helps!
Cheers,
Kevin.