Widget Demos
UI Components
Marketing
Content Display
Navigation
Notifications
Visual Effects
Interactive
Layout
Notifications
Cookie Consent Widget
GDPR-compliant cookie consent banner. Supports bar, box, and floating positions. Allows users to accept all, decline, or customize cookie preferences.
Bottom Bar
Full-width bar at the bottom of the page.
Widget appears only if consent not yet given.
Code
<?php echo CookieConsentWidget::widget([
'position' => 'bottom',
'layout' => 'bar',
]); ?>Live Demo
We use cookies to enhance your experience. By continuing to visit this site you agree to our use of cookies.
Learn moreCookie Preferences
(Required)
Essential cookies required for the website to function properly.Cookies that help us understand how visitors interact with our website.
Cookies used to deliver personalized advertisements.
Cookies that remember your preferences and settings.
Top Bar
Fixed bar at the top of the page.
Code
<?php echo CookieConsentWidget::widget([
'position' => 'top',
'layout' => 'bar',
]); ?>Live Demo
Additional cookie consent demos hidden to prevent multiple banners.
Floating Box
Floating consent box in the corner.
Code
<?php echo CookieConsentWidget::widget([
'position' => 'floating',
'layout' => 'box',
]); ?>Live Demo
Additional cookie consent demos hidden to prevent multiple banners.
Configuration Options
| Option | Type | Default | Description |
|---|---|---|---|
position | string | bottom | Position: bottom, top, floating |
layout | string | bar | Layout: bar, box |