Support » Plugin: GDPR Cookie Compliance (CCPA ready) » disable bar for copyscape audting

  • Resolved platinumshore


    This is a generic question, but if i use this plugin on it matches the gdpr text across many other different websites, I was wondering therefore if there is a way of temp. deactivating it via a query string eg ?justtext=1.

    I have added to our site themes a query test for ‘justtext’ which hides menus, headers, sidebars, footers just to focus on the text content for audit analysis, sadly it doesn’t hide the gdpr bar.. was hoping to add some code somewhere to temp. disable it if that query is true.. Is this possible please ? Thanks.

Viewing 1 replies (of 1 total)
  • Plugin Author Moove Agency


    Hi @platinumshore,

    Thanks for using our plugins.

    You can add the following code snippet to your functions.php to achieve this:

     * Overriding the default banner & modal HTML once the visitors saved preferences
    add_action( 'gdpr_modal_base_module', 'gdpr_cc_remove_hidden_elements', 10, 1 ); 
    add_action( 'gdpr_infobar_base_module', 'gdpr_cc_remove_hidden_elements', 10, 1 );
    add_action( 'gdpr_branding_styles_module', 'gdpr_cc_remove_hidden_elements', 10, 1 );
    add_action( 'gdpr_floating_button_module', 'gdpr_cc_remove_hidden_elements', 10, 1 );
    function gdpr_cc_remove_hidden_elements( $modal_html ) {
    	return isset( $_GET['justtext'] ) ? '' : $modal_html;

    Hope this helps.

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