Support Forum Support Forum GDPR Cookie Compliance Accept all button on full screen cookie

Topic Resolution: Resolved
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • Premium
    AvatarSebastian Schroeder
    April 28, 2020 @ 12:32 pm

    Hi. I’d like to do the following thing:

    Show the cookie screen in full screen mode, with “Cookie Settings screen visible straight-away” enabled as well (to display all the cookies). I want the cookies to be disabled initially (they are) but I need an “Accept All” button on this screen (right now there are only the save changes and settings buttons). The Accept all (and reject all) buttons are visible if I have “Cookie Settings screen visible straight-away” set to disabled, but I’d like to have it enabled. Thank you.

    Moove AgencyMoove Agency
    April 30, 2020 @ 6:41 am

    Hi Sebastian,

    Thanks for using our plugins.

    You can add the following code snippet to your functions.php to enable the “Accept” button:

    add_action('moove_gdpr_inline_styles','gdpr_cookie_css_extension',10,3);
    function gdpr_cookie_css_extension( $styles, $primary, $secondary ) {
      ob_start();
      ?>
      #moove_gdpr_cookie_info_bar.gdpr-full-screen-infobar .moove-gdpr-info-bar-container .moove-gdpr-info-bar-content .gdpr_cookie_settings_shortcode_content + .moove-gdpr-button-holder {
      	display:	block;
    	}
    	#moove_gdpr_cookie_info_bar.gdpr-full-screen-infobar .moove-gdpr-info-bar-container .moove-gdpr-info-bar-content .gdpr_cookie_settings_shortcode_content + .moove-gdpr-button-holder .change-settings-button {
    		display: none;
    	}
      <?php
      $styles .= ob_get_clean();
      return $styles;
    }

    Hope this helps.

    Premium
    AvatarSebastian Schroeder
    April 30, 2020 @ 1:40 pm

    Hi. The solution worked as expected. Thank you very much!

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Accept all button on full screen cookie’ is closed to new replies.