Skip to main content

Alert Widget CSS Overrides Guide

This guide covers how to use CSS overrides to customize Display.Church widgets on your website. Each widget has its own reference guide linked below, and the Alerts widget details are documented in full beneath them.

Written by Ellie M.

Widget CSS Override Reference Guides

  • Alerts Widgetalerts_widget_css_overrides.pdf

  • Calendar Widgetcalendar_widget_css_overrides.pdf

  • Groups Widgetgroups_widget_css_overrides.pdf

  • Signups Widgetsignups_widget_css_overrides.pdf


Alerts Widget CSS Overrides

Summary

You can restyle the Alert widget by adding CSS on your own website and targeting the classes already rendered by the banner. To make changes safely and cleanly:

  1. Start with the alert banner root class so your CSS only affects the widget.

  2. Target the banner and CTA classes listed in this guide.

  3. Test your changes on desktop and mobile after publishing them on your site.


Root Class Naming

Alerts render with classes like:

.alerts .dce_alerts__<widget-uuid> .dc-alerts-banner

The alert root may also include placement or position classes depending on your widget configuration.

Examples:

css

.dc-alerts-banner { } .dce_alerts__12345678-abcd-1234-abcd-123456789abc { }

Naming Schema

Class

Description

.dc-alerts-banner

Main alert banner wrapper

.dce_alerts__<uuid>

One specific alert widget instance

.dc--banner...

Banner structure classes

.dce--bar...

CTA / button structure classes


Common Targets

These are the most useful classes that appear in the alert widget output:

.dc-alerts-banner .dc--banner .dc--banner-container .dc--banner-container_description .dc--banner-container_date .dc--banner-close_container .dc--banner-container_countdown .dce--bar_cta-container .dce--bar_cta

Best Practices

Target the banner wrapper to style all alerts globally:

css

.dc-alerts-banner .dc--banner-container {   border-radius: 14px; }  .dc-alerts-banner .dce--bar_cta {   font-weight: 700; }

Target one specific alert widget using its UUID:

css

.dce_alerts__12345678-abcd-1234-abcd-123456789abc .dc--banner {   background: #1b1b1b;   color: #fff; }

Notes

  • Alerts can add classes tied to placement and behavior, so you may see extra classes on the root banner node.

  • Because alerts can be injected into page chrome, always test overrides carefully on both desktop and mobile.

  • These overrides are a workaround based on exposed HTML classes, not an officially supported customization API.

Did this answer your question?