• Resolved anonymized-12966443

    (@anonymized-12966443)


    Image shows it’s not compatible with AMP.

    It’s set on header and accept button is not working.

    • This topic was modified 5 years, 4 months ago by anonymized-12966443.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Moove Agency

    (@mooveagency)

    Hi @heathcliff2013,

    Thanks for using our plugins.

    By default the plugin should not be loaded on AMP pages, only if you change the AMP templates to use the default wp_footer hooks.
    You can add the following code snippets to your functions.php to disable the GDPR plugin on AMP pages:

    add_filter('gdpr_infobar_base_module','gdpr_remove_from_amp', 10, 1);
    add_filter('gdpr_floating_button_module','gdpr_remove_from_amp', 10, 1);
    add_filter('gdpr_modal_base_module','gdpr_remove_from_amp', 10, 1);
    
    function gdpr_remove_from_amp( $content ) {
    	return function_exists( 'is_amp_endpoint' ) && is_amp_endpoint() ? '' : $content;
    }

    More details here: https://support.mooveagency.com/topic/issue-with-gdpr-and-amp-pages/

    Hope this helps.

    Thread Starter anonymized-12966443

    (@anonymized-12966443)

    Thank you that was very helpful @mooveagency

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Plugin not AMP compatible’ is closed to new replies.