Using Custom CSS
To change the colors of the modal, copy and paste the following CSS into your site's stylesheet or your WordPress "Additional CSS" section.
Note: Replace the hex code #fb9422 in the examples below with your preferred brand color. You can find hex codes here.
/* Change the top border color of the consent dialog */
#ez-cookie-dialog-wrapper #ez-cookie-dialog.ez_banner[style]
{
border-top-color: #fb9422 !important;
}
/* Change the background color of the 'Accept All' button */
#ez-cookie-dialog-wrapper #ez-cookie-dialog.ez_banner #ez-accept-all
{
background-color: #fb9422 !important;
}
/* Change the text color of the secondary links (Privacy Policy, etc.) */
#ez-cookie-dialog-wrapper #ez-cookie-dialog a
{
color: #fb9422 !important;
}
Where to add this code:
-
WordPress: Navigate to Appearance > Customize > Additional CSS.
-
Theme Stylesheet: Add it directly to your style.css file.
-
CSS Plugins: Use a plugin like "Simple Custom CSS" if you prefer not to edit theme files directly.