• Resolved max3322

    (@max3322)


    Hi,
    I installed the addon to create the check box for GDPR compliance. There are some email signup forms that are primarily US that I don’t want to use the box, but even if I don’t fill in any of the fields, the box with the default text is shown. Can I remove the box for some forms? If not, could you add that to the enhancements?
    Thanks
    Max

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Contributor yikesitskevin

    (@yikesitskevin)

    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

    Thread Starter max3322

    (@max3322)

    Hi, I would like the method for removing the GDPR check box on one page of the website.
    Thanks
    max

    Plugin Contributor yikesitskevin

    (@yikesitskevin)

    Hi Max,

    Can you send us the URL of the page you want to remove the checkbox from?

    Thank you,
    Kevin.

    Thread Starter max3322

    (@max3322)

    Plugin Contributor yikesitskevin

    (@yikesitskevin)

    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.

    Thread Starter max3322

    (@max3322)

    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

    Plugin Contributor yikesitskevin

    (@yikesitskevin)

    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.

    Thread Starter max3322

    (@max3322)

    Yes, Thanks!

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Remove GDPR Check box’ is closed to new replies.