# Announcement Bar

**URL:** https://community.elfsight.com/c/css-codes/announcement-bar/210.md

[Latest](https://community.elfsight.com/latest.md) · [Categories](https://community.elfsight.com/categories.md) · [Tags](https://community.elfsight.com/tags.md)

---

## [Increase height of the bar](https://community.elfsight.com/t/increase-height-of-the-bar/89949)

<div class="topic-metadata">

**Author:** [@Max](https://community.elfsight.com/u/Max)\
**Replies:** 0\
**Last updated:** [December 17, 2024, 2:36pm UTC](https://community.elfsight.com/t/increase-height-of-the-bar/89949 "2024-12-17T14:36:53Z")

</div>

Add this code to the Custom CSS field on the Style tab of your Announcement Bar widget’s settings: \[class^="bar-elements\_\_Paddings-sc"\] { margin: 30px!important; }

---

## [Adjust z-index](https://community.elfsight.com/t/adjust-z-index/76479)

<div class="topic-metadata">

**Author:** [@Max](https://community.elfsight.com/u/Max)\
**Replies:** 0\
**Last updated:** [October 18, 2024, 8:14am UTC](https://community.elfsight.com/t/adjust-z-index/76479 "2024-10-18T08:14:50Z")

</div>

Add this code to the Custom CSS field on the Style tab of your Announcement Bar widget’s settings: \[class\*='bar\_\_BarContainer-sc'\] { z-index: 99 !important; }

---

## [Increase font size](https://community.elfsight.com/t/increase-font-size/76478)

<div class="topic-metadata">

**Author:** [@Max](https://community.elfsight.com/u/Max)\
**Replies:** 0\
**Last updated:** [October 18, 2024, 8:13am UTC](https://community.elfsight.com/t/increase-font-size/76478 "2024-10-18T08:13:29Z")

</div>

Add this code to the Custom CSS field on the Style tab of your Announcement Bar widget’s settings: \[class\*="message\_\_TextHTML-sc"\] { font-size: 20px; }

---

## [Hide Announcement on Mobile](https://community.elfsight.com/t/hide-announcement-on-mobile/49821)

<div class="topic-metadata">

**Author:** [@tuanphan](https://community.elfsight.com/u/tuanphan)\
**Replies:** 0\
**Last updated:** [April 27, 2024, 8:59am UTC](https://community.elfsight.com/t/hide-announcement-on-mobile/49821 "2024-04-27T08:59:20Z")

</div>

You can add this code to Custom CSS field on the Style tab of your Announcement Bar widget’s settings: @media screen and (max-width:767px) { div\[class\*="es-announcement-bar"\] { display: none !important; }}

---

## [Set Slide Up closing animation (Top Bar)](https://community.elfsight.com/t/set-slide-up-closing-animation-top-bar/46865)

<div class="topic-metadata">

**Author:** [@Max](https://community.elfsight.com/u/Max)\
**Replies:** 0\
**Last updated:** [April 10, 2024, 11:54am UTC](https://community.elfsight.com/t/set-slide-up-closing-animation-top-bar/46865 "2024-04-10T11:54:09Z")

</div>

Add this code to the Custom CSS field on the Style tab of your Announcement Bar widget’s settings: .global-styles, html { transition: margin-top 0.3s linear; } .es-announcement-bar-closed { max-height: 0 !important…
