# CSS Codes

**URL:** https://community.elfsight.com/c/css-codes/158.md?page=1

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

**Page:** 2

---

## [Change AI Summary text color, size and font](https://community.elfsight.com/t/change-ai-summary-text-color-size-and-font/169539)

<div class="topic-metadata">

**Author:** [@Max](https://community.elfsight.com/u/Max)\
**Replies:** 0\
**Last updated:** [July 28, 2026, 12:19pm UTC](https://community.elfsight.com/t/change-ai-summary-text-color-size-and-font/169539 "2026-07-28T12:19:38Z")

</div>

Add this code to the Custom CSS field on the Style tab of your Reviews widget’s settings: .es-ai-summary-list-item-text { color: blue; font-family: Roboto; font-size: 25px; }

---

## [Hide AI Summary icon](https://community.elfsight.com/t/hide-ai-summary-icon/169538)

<div class="topic-metadata">

**Author:** [@Max](https://community.elfsight.com/u/Max)\
**Replies:** 0\
**Last updated:** [July 28, 2026, 12:18pm UTC](https://community.elfsight.com/t/hide-ai-summary-icon/169538 "2026-07-28T12:18:28Z")

</div>

Add this code to the Custom CSS field on the Style tab of your Reviews widget’s settings: .es-ai-summary-avatar-icon { display: none; }

---

## [Add scroll for the options list in the Dropdown](https://community.elfsight.com/t/add-scroll-for-the-options-list-in-the-dropdown/73343)

<div class="topic-metadata">

**Author:** [@Max](https://community.elfsight.com/u/Max)\
**Replies:** 2\
**Last updated:** [July 23, 2026, 12:50pm UTC](https://community.elfsight.com/t/add-scroll-for-the-options-list-in-the-dropdown/73343 "2026-07-23T12:50:48Z")

</div>

Add this code to the Custom CSS field on the Settings tab of your Calculator widget’s settings: \[class\*="Dropdown\_\_DropdownContainer-sc"\] { max-height: 450px; overflow: hidden auto; } Guys, if this code was helpful t…

---

## [Show Map and List Stacked on Mobile](https://community.elfsight.com/t/show-map-and-list-stacked-on-mobile/140572)

<div class="topic-metadata">

**Author:** [@user2694](https://community.elfsight.com/u/user2694)\
**Replies:** 3\
**Last updated:** [July 23, 2026, 10:27am UTC](https://community.elfsight.com/t/show-map-and-list-stacked-on-mobile/140572 "2026-07-23T10:27:33Z")

</div>

Hi, I didn’t see an option for stacked view on mobile. This is my suggesting with custom CSS. Add this code to the Custom CSS field on the Style tab of your widget’s settings: /\* --- Mobile Layout: Show Map AND List (…

---

## [Stack horizontal form vertically on mobile](https://community.elfsight.com/t/stack-horizontal-form-vertically-on-mobile/168909)

<div class="topic-metadata">

**Author:** [@Max](https://community.elfsight.com/u/Max)\
**Replies:** 0\
**Last updated:** [July 22, 2026, 9:00pm UTC](https://community.elfsight.com/t/stack-horizontal-form-vertically-on-mobile/168909 "2026-07-22T21:00:00Z")

</div>

Horizontal forms are a great fit for desktop, but they may not look as good on mobile due to limited screen space. Fields can become too narrow, causing horizontal scrolling or cut-off labels. A simple solution is to sw…

---

## [Align description under photos to center](https://community.elfsight.com/t/align-description-under-photos-to-center/76499)

<div class="topic-metadata">

**Author:** [@Max](https://community.elfsight.com/u/Max)\
**Replies:** 0\
**Last updated:** [October 18, 2024, 9:09am UTC](https://community.elfsight.com/t/align-description-under-photos-to-center/76499 "2024-10-18T09:09:29Z")

</div>

Add this code to the Custom CSS field on the Style tab of your Photo Gallery widget’s settings: .eapp-photo-gallery-info-component{ text-align: center; } Guys, if this code was helpful to you, please drop a line in t…

---

## [Swap out slider button with character](https://community.elfsight.com/t/swap-out-slider-button-with-character/167176)

<div class="topic-metadata">

**Author:** [@Mike\_Waller](https://community.elfsight.com/u/Mike_Waller)\
**Replies:** 1\
**Last updated:** [July 7, 2026, 3:56pm UTC](https://community.elfsight.com/t/swap-out-slider-button-with-character/167176 "2026-07-07T15:56:56Z")

</div>

/\* 1. Target the draggable thumb handle wrapper container \*/ \[class\*="SliderThumbBase\_\_Thumb"\], \[class\*="slider\_\_SliderThumb"\], \[role="slider"\] \[class\*="Thumb"\] { width: 44px !important; height: 44px !important; ba…

---

## [Change color of slider control](https://community.elfsight.com/t/change-color-of-slider-control/73341)

<div class="topic-metadata">

**Author:** [@Max](https://community.elfsight.com/u/Max)\
**Replies:** 2\
**Last updated:** [July 7, 2026, 10:05am UTC](https://community.elfsight.com/t/change-color-of-slider-control/73341 "2026-07-07T10:05:09Z")

</div>

Add this code to the Custom CSS field on the Settings tab of your Calculator widget’s settings: \[class\*=‘slider\_\_SliderThumb-sc’\] { background: #162B75 !important; } Guys, if this code was helpful to you, please drop…

---

## [Align the form to the left of the page](https://community.elfsight.com/t/align-the-form-to-the-left-of-the-page/92631)

<div class="topic-metadata">

**Author:** [@Sina](https://community.elfsight.com/u/Sina)\
**Replies:** 0\
**Last updated:** [January 4, 2025, 3:03pm UTC](https://community.elfsight.com/t/align-the-form-to-the-left-of-the-page/92631 "2025-01-04T15:03:58Z")

</div>

Add this code to the Custom CSS field on the Appearance tab of your Contact Form widget’s settings: \[class\*="Content\_\_WidgetContainer-sc"\] { margin-left: 0 !important; }

---

## [Increase image size on mobile for Slider layout](https://community.elfsight.com/t/increase-image-size-on-mobile-for-slider-layout/25078)

<div class="topic-metadata">

**Author:** [@Max](https://community.elfsight.com/u/Max)\
**Replies:** 0\
**Last updated:** [November 9, 2023, 1:38pm UTC](https://community.elfsight.com/t/increase-image-size-on-mobile-for-slider-layout/25078 "2023-11-09T13:38:50Z")

</div>

Add this code to the Custom CSS field on your Photo Gallery widget’s Style tab: @media (max-width: 767px) { .eapp-photo-gallery-slider-item-component { height: 600px !important; padding: 0 !important; } }

---

## [Change Color "Copy", "Like", and "Dislike" Icons](https://community.elfsight.com/t/change-color-copy-like-and-dislike-icons/164401)

<div class="topic-metadata">

**Author:** [@Sina](https://community.elfsight.com/u/Sina)\
**Replies:** 1\
**Last updated:** [June 18, 2026, 2:47pm UTC](https://community.elfsight.com/t/change-color-copy-like-and-dislike-icons/164401 "2026-06-18T14:47:28Z")

</div>

Add this code to the Custom CSS field on the Settings tab of your AI Chatbot widget’s settings /\* Change Color of Copy, Like, and Dislike Icons \*/ /\* Copy \*/ \[class\*="dialog-message-content\_\_Footer-sc"\] button:nth-of-t…

---

## [Change font of all elements (Blog)](https://community.elfsight.com/t/change-font-of-all-elements-blog/76018)

<div class="topic-metadata">

**Author:** [@Max](https://community.elfsight.com/u/Max)\
**Replies:** 2\
**Last updated:** [June 18, 2026, 6:36am UTC](https://community.elfsight.com/t/change-font-of-all-elements-blog/76018 "2026-06-18T06:36:46Z")

</div>

Although we do provide a list of fonts for you to choose for your widget, you might happen to need a custom code. If that is the case, add this code to the Custom CSS field on the Settings tab of your Blog widget’s sett…

---

## [Change color of Submit button on hover](https://community.elfsight.com/t/change-color-of-submit-button-on-hover/77654)

<div class="topic-metadata">

**Author:** [@Max](https://community.elfsight.com/u/Max)\
**Replies:** 0\
**Last updated:** [October 22, 2024, 2:20pm UTC](https://community.elfsight.com/t/change-color-of-submit-button-on-hover/77654 "2024-10-22T14:20:10Z")

</div>

Add the code below to the Custom CSS field on your Form widget’s Appearance tab: \[class\*="ButtonBase\_\_ButtonContainer-sc"\]:hover { background-color: black !important; transition: all 0.5s ease-out; } Guys, if this co…

---

## [Hide header on mobile](https://community.elfsight.com/t/hide-header-on-mobile/163951)

<div class="topic-metadata">

**Author:** [@Max](https://community.elfsight.com/u/Max)\
**Replies:** 0\
**Last updated:** [June 15, 2026, 11:23am UTC](https://community.elfsight.com/t/hide-header-on-mobile/163951 "2026-06-15T11:23:32Z")

</div>

Add the code below to Custom CSS field on your Instagram Feed widget’s Style tab: Old widget version (widgets created before Aug 26, 2026) @media (max-width: 500px) { .es-header { display: none; } } New widget ver…

---

## [Remove image borders](https://community.elfsight.com/t/remove-image-borders/25515)

<div class="topic-metadata">

**Author:** [@Max](https://community.elfsight.com/u/Max)\
**Replies:** 0\
**Last updated:** [November 14, 2023, 11:18am UTC](https://community.elfsight.com/t/remove-image-borders/25515 "2023-11-14T11:18:54Z")

</div>

Add this code to the Custom CSS field on the Style tab of your Restaurant Menu widget’s settings: .global-styles, \[class\*='Image\_\_ImageComponentContainer-sc'\]::after { border: none !important; }

---

## [Change order of Learn More and Action buttons (Carousel layout)](https://community.elfsight.com/t/change-order-of-learn-more-and-action-buttons-carousel-layout/163380)

<div class="topic-metadata">

**Author:** [@Max](https://community.elfsight.com/u/Max)\
**Replies:** 0\
**Last updated:** [June 9, 2026, 1:49pm UTC](https://community.elfsight.com/t/change-order-of-learn-more-and-action-buttons-carousel-layout/163380 "2026-06-09T13:49:47Z")

</div>

Add this code to the Custom CSS field on the Settings tab of your Timeline widget’s settings: .es-event-card-buttons-wrapper { flex-flow: column-reverse; justify-content: start; }

---

## [Change order of Learn More and Action buttons (List layout)](https://community.elfsight.com/t/change-order-of-learn-more-and-action-buttons-list-layout/149351)

<div class="topic-metadata">

**Author:** [@Max](https://community.elfsight.com/u/Max)\
**Replies:** 2\
**Last updated:** [June 9, 2026, 1:49pm UTC](https://community.elfsight.com/t/change-order-of-learn-more-and-action-buttons-list-layout/149351 "2026-06-09T13:49:14Z")

</div>

Add this code to the Custom CSS field on the Settings tab of your Timeline widget’s settings: .es-event-card-buttons-wrapper { flex-flow: row-reverse; justify-content: start; }

---

## [Change color of track progress bar and slider](https://community.elfsight.com/t/change-color-of-track-progress-bar-and-slider/162904)

<div class="topic-metadata">

**Author:** [@Max](https://community.elfsight.com/u/Max)\
**Replies:** 0\
**Last updated:** [June 4, 2026, 12:05pm UTC](https://community.elfsight.com/t/change-color-of-track-progress-bar-and-slider/162904 "2026-06-04T12:05:11Z")

</div>

Add the code below to the Custom CSS field on the Settings tab of your Audio Player widget’s settings: \[class\*='ProgressBar\_\_Thumb-sc'\] { background-color: green !important; } \[class\*='ProgressBar\_\_FakeTrack-sc'\] { bac…

---

## [Change border radius of divider](https://community.elfsight.com/t/change-border-radius-of-divider/162794)

<div class="topic-metadata">

**Author:** [@Max](https://community.elfsight.com/u/Max)\
**Replies:** 0\
**Last updated:** [June 3, 2026, 11:26am UTC](https://community.elfsight.com/t/change-border-radius-of-divider/162794 "2026-06-03T11:26:46Z")

</div>

Add this code to the Custom CSS field on the Style tab of your Before and After Slider widget’s settings: .global-styles, \[class\*='PairSliderDivider\_\_Bar-sc'\] { border-radius: 34px !IMPORTANT; }

---

## [Hide sidebar on desktop and location list on mobile](https://community.elfsight.com/t/hide-sidebar-on-desktop-and-location-list-on-mobile/81963)

<div class="topic-metadata">

**Author:** [@Max](https://community.elfsight.com/u/Max)\
**Replies:** 2\
**Last updated:** [February 20, 2025, 6:15pm UTC](https://community.elfsight.com/t/hide-sidebar-on-desktop-and-location-list-on-mobile/81963 "2025-02-20T18:15:12Z")

</div>

Add this code to the Custom CSS field on the Style tab of your Store Locator widget’s settings: .global-styles, \[class\*="layout\_\_Sidebar-sc"\] { display: none !important; } @media (width \<= 480px) { \[class\*="directory-l…

---

## [Hide widget on desktop (floating layout)](https://community.elfsight.com/t/hide-widget-on-desktop-floating-layout/38111)

<div class="topic-metadata">

**Author:** [@Max](https://community.elfsight.com/u/Max)\
**Replies:** 1\
**Last updated:** [May 16, 2026, 12:45pm UTC](https://community.elfsight.com/t/hide-widget-on-desktop-floating-layout/38111 "2026-05-16T12:45:24Z")

</div>

Add this code to the Custom CSS field on the Design tab of your Button widget’s settings: @media (min-width: 450px) { .global-styles, \[class\*="FloatingButton\_\_FloatingButtonContainer-sc"\] { display: none !importa…

---

## [Remove bottom padding and reduce margin between tabs on mobile](https://community.elfsight.com/t/remove-bottom-padding-and-reduce-margin-between-tabs-on-mobile/160090)

<div class="topic-metadata">

**Author:** [@Max](https://community.elfsight.com/u/Max)\
**Replies:** 0\
**Last updated:** [May 15, 2026, 11:06am UTC](https://community.elfsight.com/t/remove-bottom-padding-and-reduce-margin-between-tabs-on-mobile/160090 "2026-05-15T11:06:09Z")

</div>

Add this code to the Custom CSS field on the Style tab of your Restaurant Menu widget’s settings: @media (max-width: 640px) { \[class\*="TabsControlItem\_\_TabsControlItemComponent"\] { margin: 5px; padding-bottom: 0px; …

---

## [Change font size of the tabs on mobile](https://community.elfsight.com/t/change-font-size-of-the-tabs-on-mobile/130358)

<div class="topic-metadata">

**Author:** [@Max](https://community.elfsight.com/u/Max)\
**Replies:** 2\
**Last updated:** [May 15, 2026, 11:05am UTC](https://community.elfsight.com/t/change-font-size-of-the-tabs-on-mobile/130358 "2026-05-15T11:05:02Z")

</div>

Add this code to the Custom CSS field on the Style tab of your Restaurant Menu widget’s settings: @media (max-width: 500px) { \[class\*="TabsControlItem\_\_Name-sc"\] { font-size: 15px; } }

---

## [Move widget to the center of the page](https://community.elfsight.com/t/move-widget-to-the-center-of-the-page/25077)

<div class="topic-metadata">

**Author:** [@Max](https://community.elfsight.com/u/Max)\
**Replies:** 2\
**Last updated:** [May 14, 2026, 11:31am UTC](https://community.elfsight.com/t/move-widget-to-the-center-of-the-page/25077 "2026-05-14T11:31:34Z")

</div>

Add this code to the Custom CSS field on your Photo Gallery widget’s Style tab: .global-styles, \[class\*="RootLayout\_\_Component"\] { margin: auto; }

---

## [Change badge corner radius on mobile](https://community.elfsight.com/t/change-badge-corner-radius-on-mobile/159847)

<div class="topic-metadata">

**Author:** [@Max](https://community.elfsight.com/u/Max)\
**Replies:** 0\
**Last updated:** [May 14, 2026, 10:42am UTC](https://community.elfsight.com/t/change-badge-corner-radius-on-mobile/159847 "2026-05-14T10:42:43Z")

</div>

Add this code to the Custom CSS field on the Style tab of your Reviews widget’s settings: @media (max-width: 500px) { .es-badge-container { border-radius: 5px; } }

---

## [Change color category titles](https://community.elfsight.com/t/change-color-category-titles/25050)

<div class="topic-metadata">

**Author:** [@Max](https://community.elfsight.com/u/Max)\
**Replies:** 2\
**Last updated:** [May 6, 2026, 10:36am UTC](https://community.elfsight.com/t/change-color-category-titles/25050 "2026-05-06T10:36:13Z")

</div>

Add this code to the Custom CSS field on the Appearance tab of your FAQ widget’s settings: .eapps-faq-content-category-title-text{ color: rgba(14, 193, 47, 0.89); }

---

## [Hide date when the comment was published](https://community.elfsight.com/t/hide-date-when-the-comment-was-published/139370)

<div class="topic-metadata">

**Author:** [@Max](https://community.elfsight.com/u/Max)\
**Replies:** 1\
**Last updated:** [April 21, 2026, 3:55pm UTC](https://community.elfsight.com/t/hide-date-when-the-comment-was-published/139370 "2026-04-21T15:55:52Z")

</div>

Add this code to the Custom CSS field on the Settings tab of your Comments widget’s settings: \[class\*="date\_\_DateTime-sc"\] { display: none; }

---

## [Add gradient effect](https://community.elfsight.com/t/add-gradient-effect/38108)

<div class="topic-metadata">

**Author:** [@Max](https://community.elfsight.com/u/Max)\
**Replies:** 2\
**Last updated:** [April 13, 2026, 2:11pm UTC](https://community.elfsight.com/t/add-gradient-effect/38108 "2026-04-13T14:11:17Z")

</div>

Add this code to the Custom CSS field on the Design tab of your Button widget’s settings: \[class^="ButtonBase\_\_ButtonContainer"\] { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #…

---

## [Reduce popup on mobile](https://community.elfsight.com/t/reduce-popup-on-mobile/23372)

<div class="topic-metadata">

**Author:** [@Helga](https://community.elfsight.com/u/Helga)\
**Replies:** 2\
**Last updated:** [April 10, 2026, 11:04am UTC](https://community.elfsight.com/t/reduce-popup-on-mobile/23372 "2026-04-10T11:04:53Z")

</div>

Add the code below to Custom CSS field on your Popup widget’s Settings tab: @media(max-width: 500px){ .global-styles, \[class\*="LayoutSlideIn\_\_ModalContent-sc"\], \[class\*="Popup\_\_PopupCloseInsideInner-sc"\] { transform…

---

## [Change color of arrows in filters](https://community.elfsight.com/t/change-color-of-arrows-in-filters/152973)

<div class="topic-metadata">

**Author:** [@Max](https://community.elfsight.com/u/Max)\
**Replies:** 0\
**Last updated:** [April 6, 2026, 5:53pm UTC](https://community.elfsight.com/t/change-color-of-arrows-in-filters/152973 "2026-04-06T17:53:59Z")

</div>

Add this code to the Custom CSS field on the Style tab of your Event Calendar widget’s settings: .es-filter-button-slot { fill: white!important; }

[Previous page](https://community.elfsight.com/c/css-codes/158.md)

[Next page](https://community.elfsight.com/c/css-codes/158.md?page=2)
