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

  • Resolved platinumshore

    (@platinumshore)


    This is a generic question, but if i use this plugin on copyscape.com 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 copyscape.com 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 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Moove Agency

    (@mooveagency)

    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.

    Thread Starter platinumshore

    (@platinumshore)

    wow – cheers for this adding now

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