Sogo Consent adds a customisable cookie consent banner to your WordPress site. All settings are managed from the WordPress admin. No external services are used. No visitor data is sent anywhere.
Consent modes
Layout options
Four layout options are available: bottom full-width strip, bottom centre card, bottom right card, bottom left card. On mobile and tablet (992px and below) all layouts automatically become a centred floating card.
Behaviour options
Appearance options
Customise background colour, text colour, title colour, primary and secondary button colours, corner radius, and box shadow — all from the Appearance tab in admin.
Consent storage
Consent is stored as a first-party browser cookie named sogo_consent. It uses SameSite=Lax and Secure (HTTPS only). The cookie contains the consent status, timestamp, policy version, banner mode, and category choices. No consent data is stored in the WordPress database.
Developer integration
A public JavaScript API is available on every page after the plugin loads:
window.SogoConsent.getConsent() — returns the current consent object or nullwindow.SogoConsent.hasConsented() — returns true if valid consent existswindow.SogoConsent.resetConsent() — clears the cookie and re-shows the bannerA DOM event fires whenever consent changes:
document.addEventListener('sogoconsent:change', function(e) { console.log(e.detail); });
Use this event to activate or deactivate analytics or marketing scripts based on the visitor’s choice.
Cache compatibility
The banner HTML is always present in the page source (hidden via the hidden attribute). JavaScript reads the consent cookie on DOMContentLoaded and decides whether to show the banner. This approach works with full-page caching plugins.
RTL and Hebrew support
The plugin auto-detects the WordPress admin language via is_rtl(). On Hebrew installs, all admin labels and default banner text are in Hebrew. The frontend CSS includes scoped RTL layout rules for the modal, toggle, and card positioning.
What this plugin does NOT do