Display a councillor's profile card on ward pages or other council website sections.
Quick Start
Embed Code
Required attribute
The data-councillor attribute is required. Use the councillor's URL slug (e.g. jane-smith from your-site.casework.cloud/jane-smith).
Configuration
What's displayed
Full layout
| Field | Description |
|---|---|
| Avatar | Profile photo or initial placeholder |
| Name | Councillor's display name |
| Party | Political party badge |
| Ward | Ward name |
| Bio | First 200 characters of the biography |
| Cases Handled | Number of assigned cases |
| Contact | Public email and phone (if provided) |
| Profile Link | Links to the full profile on Casework |
Compact layout
Shows only avatar, name, party, ward, and the profile link.
Example with compact layout
Compact councillor card
Data source
The widget fetches councillor data from GET /api/public/councillors/{slug}. This endpoint returns public-safe profile fields only. Profile visibility respects plan tiering — Free-tier profiles show fewer fields than Pro or Council tier profiles.
Links open in parent window
All links in the widget (email, phone, full profile) use target="_parent" so they open in the host page rather than within the widget.