Default bootstrap banner template

By The Cookie jar

Heres a basic banner template that relies on bootstrap classes. If you install bootstrap on your website you can use this without modification.

<form id="theCookieJarConsentBannerForm">
    <div class="fixed-bottom p-1">
        <div class="toast show consent-banner w-100 bg-primary" role="alert" aria-live="assertive" aria-atomic="true" data-bs-autohide="false">
            <div class="toast-body p-4 d-flex flex-column">
                <h4 class="text-white">Your Privacy</h4>
                <div class="row">
                    <div class="col-9 sm-col-12">
                        <p class="text-white">
                            This website stores data such as cookies to enable site functionality including analytics and personalization. By using this website, you automatically accept that we use cookies. 
                        </p>
                    </div>
                    <div class="ms-auto col-auto">
                        <div class="ms-auto">
                            <input type="hidden" id="security_storage" name="security_storage" value="granted">
                            <input type="hidden" id="functionality_storage" name="functionality_storage" value="granted">
                            <input type="hidden" id="ad_storage" name="ad_storage" value="granted">
                            <input type="hidden" id="ad_user_data" name="ad_user_data" value="granted">
                            <input type="hidden" id="ad_personalization" name="ad_personalization" value="granted">
                            <input type="hidden" id="analytics_storage" name="analytics_storage" value="granted">
                            <input type="hidden" id="personalization_storage" name="personalization_storage" value="granted">
                            <button type="submit" class="btn bg-secondary fw-500 me-2 gilroy text-white" data-bs-dismiss="toast">
                                I Understand
                            </button>
                        </div>
                    </div>
                </div>
                <a href="https://cookieconsentjar.com/" class="position-absolute start-0 bottom-0 p-3 pb-2 ps-4 ms-1 mb-1 d-flex align-items-end">
                    <small><span class="text-white me-1">Powered by</span></small>
                    <img style="max-height: 12px;" src="https://storage.googleapis.com/thecookiejar_prod/img/logo.webp" alt="Consent Manager Logo" class="mb-1" />
                </a>
            </div>
        </div>
    </div>
</form>
Was this page helpful?
Further questions? You can reach out via email.