• Resolved roikles

    (@roikles)


    Hi team,

    Firstly, love the plugin it is fantastic. We have a client that is considering their options around cookie consent on a new WordPress site and they want to create an experience on the Cookie information page similar to how the gov.uk website handles it in the UK. (example: https://www.gov.uk/help/cookies).

    The main objectives would be to display the information so that there are no drop-down menus in the way that Complianz currently displays it and would also like the possibility of changing the checkbox for consent to a pair of radio buttons.

    Could you advise on if this is possible, apologies if I have missed something in the documentation around this I have looked. Alternatively I have seen you mention the WP Consent API integration. Would it be possible for us to create our own Implementation of that API to manage consent which is read by Complianz to have all the brilliant blocking features continue to work?

    Appreciate any advise or guidance you could provide.

    Kind regards,
    Rory

Viewing 1 replies (of 1 total)
  • Plugin Contributor Aert Hulsebos

    (@aahulsebos)

    Hi @roikles,

    The last question first, the Consent API is especially meant for you to integrate with directly. https://wpconsentapi.org is a page where you can find some information, and links to Github if you want to know more.

    And now for the consent overview. We have not yet come across a similar set-up, so I don’t have an out-of-the-box solution. It can of course be done, but to create the solution, and not interfering with the current javascript being loaded I need to have a look.

    This is how it’s currently being triggered;

    cmplz_add_event('change', '.cmplz-manage-consent-container .cmplz-category', function(e){
    	for (var key in cmplz_categories) {
    		if ( cmplz_categories.hasOwnProperty(key) ) {
    			var category = cmplz_categories[key];
    			var categoryElement = document.querySelector('.cmplz-manage-consent-container input.cmplz-' + category);
    			if (categoryElement) {
    				if (categoryElement.checked) {
    					cmplz_set_consent(category, 'allow');
    				} else {
    					cmplz_set_consent(category, 'deny');
    				}
    				cmplz_set_banner_status('dismissed');
    				cmplz_fire_categories_event();
    				cmplz_track_status();
    			}
    		}
    	}
    
    });

    regards Aert

Viewing 1 replies (of 1 total)
  • The topic ‘Possible to customise the consent page dropdowns and toggles?’ is closed to new replies.