1. Log in
- Sign in to the Drupal site with an account that has Administrator or Site Builder permissions.
-
If you do not have these permissions, ask your site administrator to grant them or to apply the CSS for you.
2. Navigate to Asset Injector
- From the left-hand menu, go to: Configuration → Development → Asset Injector.
- Click the CSS Injector card or link.

3. Add a new CSS rule
- Click the button labeled Add CSS (or similar).
- In the form that appears:
- Label: Enter a clear name (e.g.
Homepage Banner Styling). - Code: Paste the CSS rules you want to apply.
- Label: Enter a clear name (e.g.
- Example CSS (copy into the Code box):
.site-header {
background-color: #003366;
color: #ffffff;
}
.page-title {
margin-bottom: 8px;
}
4. Set conditions (optional)
- If available, you can restrict the CSS to specific pages, paths, or content types:
- Leave blank to apply site-wide.
- Use the path or content-type fields to target specific pages only (for example,
/aboutor content typeArticle).
5. Save and verify
- Click Save.
- Reload the public site (or the targeted page) and verify the styling changes are visible.
- If you do not see the change:
- Clear the Drupal cache (Configuration → Development → Performance → Clear caches) or ask the administrator to do so.
- Hard-refresh your browser (Ctrl/Cmd + Shift + R) to bypass cached files.
Tips & best practices
- Test first: Apply CSS in a staging or development site before saving in production.
- Label clearly: Use descriptive labels so other editors understand the purpose of each rule.
- Keep changes small: Prefer small, focused CSS rules rather than large, sweeping overrides.
- Document: Add a short note in the label or a shared doc describing what the CSS changes and why.
- Rollback: If something breaks, disable or remove the CSS entry to revert quickly.