Sample Page

foobar
jQuery(document).ready(function ($) { var consentCategory = ‘marketing’; console.log(“WP-CONSENT: checking consent for category “+consentCategory); /** * cookie placing plugin can listen to consent change * */ console.log(“WP-CONSENT: load plugin example”); document.addEventListener(“wp_listen_for_consent_change”, function (e) { console.log(‘WP-CONSENT: listen for consent events’); var changedConsentCategory = e.detail; console.log(‘WP-CONSENT: ‘); console.log(changedConsentCategory); for (var key in changedConsentCategory) { if (changedConsentCategory.hasOwnProperty(key)) { if (key === consentCategory && changedConsentCategory[key] === ‘allow’) { console.log(“WP-CONSENT: set “+consentCategory+” cookie on user actions”); activateConsent(); } } } }); /** * Or do stuff as soon as the consenttype is defined */ $(document).on(“wp_consent_type_defined”, activateMyCookies); function activateMyCookies(consentData) { //your code here if (wp_has_consent(consentCategory)) { console.log(“WP-CONSENT: do “+consentCategory+” cookie stuff”); } else { console.log(“WP-CONSENT: no “+consentCategory+” cookies please”); } } //check if we need to wait for the consenttype to be set if (!window.waitfor_consent_hook) { console.log(“WP-CONSENT: we don’t have to wait for the consent type, we can check the consent level right away!”); if (wp_has_consent(consentCategory)) { activateConsent(); console.log(“WP-CONSENT: set “+consentCategory+” stuff now!”); } else { console.log(“WP-CONSENT: No “+consentCategory+” stuff please!”); } } /** * Do stuff that normally would do stuff like tracking personal user data etc. */ function activateConsent() { console.log(“WP-CONSENT: fire “+consentCategory); } });

This is an example page. It’s different from a blog post because it will stay in one place and will show up in your site navigation (in most themes). Most people start with an About page that introduces them to potential site visitors. It might say something like this:

Hi there! I’m a bike messenger by day, aspiring actor by night, and this is my website. I live in Los Angeles, have a great dog named Jack, and I like piƱa coladas. (And gettin’ caught in the rain.)

HTML Form















WP Forms

Please enable JavaScript in your browser to complete this form.
Name

Contact Form 7

    Ninja Form

    Vine form