I’ve created a fixed announcement bar on Dawn Theme but it’s appearing too far to the left? It’s fine on smaller desktop screens.
Topic summary
A user implemented a fixed announcement bar on the Dawn theme but encountered a positioning issue where the bar appears too far left on larger desktop screens, while displaying correctly on smaller screens.
Proposed Solution:
- Add CSS to make the announcement bar full-width:
.announcement-bar-section { width: 100%; }
- Optionally add bottom padding to prevent the fixed bar from covering page content:
body { padding-bottom: 2rem; }
The issue appears to be related to width constraints on the announcement bar section at larger viewport sizes.
1 Like
You’d need this to make it full-bleed.
.announcement-bar-section {
width: 100%;
}
May also add this as well to avoid covering something at the bottom of the page…
body {
padding-bottom: 2rem;
}
1 Like
