# Photo Gallery

**URL:** https://community.elfsight.com/c/css-codes/photo-gallery/174.md

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

---

## [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…

---

## [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; } }

---

## [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; }

---

## [Move image title to the bottom and change its font when showing on photo](https://community.elfsight.com/t/move-image-title-to-the-bottom-and-change-its-font-when-showing-on-photo/139380)

<div class="topic-metadata">

**Author:** [@Max](https://community.elfsight.com/u/Max)\
**Replies:** 0\
**Last updated:** [September 5, 2025, 6:25pm UTC](https://community.elfsight.com/t/move-image-title-to-the-bottom-and-change-its-font-when-showing-on-photo/139380 "2025-09-05T18:25:36Z")

</div>

Add this code to the Custom CSS field on the Style tab of your Photo Gallery widget’s settings: .eapp-photo-gallery-item-data-info { align-items: flex-end; } .eapp-photo-gallery-info-title { font-family: 'Times New Rom…

---

## [Vertical image sliding in Slider layout](https://community.elfsight.com/t/vertical-image-sliding-in-slider-layout/139379)

<div class="topic-metadata">

**Author:** [@Max](https://community.elfsight.com/u/Max)\
**Replies:** 0\
**Last updated:** [September 5, 2025, 6:22pm UTC](https://community.elfsight.com/t/vertical-image-sliding-in-slider-layout/139379 "2025-09-05T18:22:50Z")

</div>

Add this code to the Custom CSS field on the Style tab of your Photo Gallery widget’s settings: \[role="button"\]\[aria-label="Previous"\] { top: 0 !important; left: 50%; transform: rotate(90deg) translateX(30%); } \[role="…

---

## [Make white background in popup](https://community.elfsight.com/t/make-white-background-in-popup/139378)

<div class="topic-metadata">

**Author:** [@Max](https://community.elfsight.com/u/Max)\
**Replies:** 0\
**Last updated:** [September 5, 2025, 6:20pm UTC](https://community.elfsight.com/t/make-white-background-in-popup/139378 "2025-09-05T18:20:47Z")

</div>

Add this code to the Custom CSS field on the Style tab of your Photo Gallery widget’s settings: .global-styles, .fslightbox-container { background: white !important; } .global-styles, .fslightbox-container \* { colo…

---

## [Reduce spacing between group names and photos](https://community.elfsight.com/t/reduce-spacing-between-group-names-and-photos/139377)

<div class="topic-metadata">

**Author:** [@Max](https://community.elfsight.com/u/Max)\
**Replies:** 0\
**Last updated:** [September 5, 2025, 6:19pm UTC](https://community.elfsight.com/t/reduce-spacing-between-group-names-and-photos/139377 "2025-09-05T18:19:26Z")

</div>

Add this code to the Custom CSS field on the Style tab of your Photo Gallery widget’s settings: .eapp-team-showcase-group-title{ margin-bottom: 10px; }

---

## [Hide thumbnails in popup](https://community.elfsight.com/t/hide-thumbnails-in-popup/139376)

<div class="topic-metadata">

**Author:** [@Max](https://community.elfsight.com/u/Max)\
**Replies:** 0\
**Last updated:** [September 5, 2025, 6:18pm UTC](https://community.elfsight.com/t/hide-thumbnails-in-popup/139376 "2025-09-05T18:18:18Z")

</div>

Add this code to the Custom CSS field on the Style tab of your Photo Gallery widget’s settings: .global-styles, .fslightbox-thumbnails-wrapper { display: none!important; }

---

## [Make Load More button look like button in Reviews](https://community.elfsight.com/t/make-load-more-button-look-like-button-in-reviews/76502)

<div class="topic-metadata">

**Author:** [@Max](https://community.elfsight.com/u/Max)\
**Replies:** 2\
**Last updated:** [April 11, 2025, 11:53am UTC](https://community.elfsight.com/t/make-load-more-button-look-like-button-in-reviews/76502 "2025-04-11T11:53:45Z")

</div>

Add this code to the Custom CSS field on the Style tab of your Photo Gallery widget’s settings: .eapp-photo-gallery-photo-gallery-loadMore { border-radius: 16px; background-color: rgba(17, 17, 17, 0.06); cursor: pointer…

---

## [Remove paddings](https://community.elfsight.com/t/remove-paddings/75123)

<div class="topic-metadata">

**Author:** [@Max](https://community.elfsight.com/u/Max)\
**Replies:** 6\
**Last updated:** [April 7, 2025, 2:03pm UTC](https://community.elfsight.com/t/remove-paddings/75123 "2025-04-07T14:03:33Z")

</div>

Add this code to the Custom CSS field on the Style tab of your Photo Gallery widget’s settings: .es-embed-root { padding: 0; } Guys, if this code was helpful to you, please drop a line in the comments. Your feedback …

---

## [Make rounded corners of the widget's container](https://community.elfsight.com/t/make-rounded-corners-of-the-widgets-container/35151)

<div class="topic-metadata">

**Author:** [@Max](https://community.elfsight.com/u/Max)\
**Replies:** 4\
**Last updated:** [March 31, 2025, 1:44pm UTC](https://community.elfsight.com/t/make-rounded-corners-of-the-widgets-container/35151 "2025-03-31T13:44:26Z")

</div>

Add this code to the Custom CSS field on the Style tab of your Photo Gallery widget’s settings: .eapp-photo-gallery-photo-gallery-component { border-radius: 15px; }

---

## [Move categories under the photos](https://community.elfsight.com/t/move-categories-under-the-photos/109186)

<div class="topic-metadata">

**Author:** [@Max](https://community.elfsight.com/u/Max)\
**Replies:** 0\
**Last updated:** [March 25, 2025, 11:42am UTC](https://community.elfsight.com/t/move-categories-under-the-photos/109186 "2025-03-25T11:42:20Z")

</div>

Add this code to the Custom CSS field on the Style tab of your Photo Gallery widget’s settings: .eapp-photo-gallery-photo-gallery-component { display: flex; flex-direction: column; } .eapp-photo-gallery-category-li…

---

## [Change font size and font color of image title](https://community.elfsight.com/t/change-font-size-and-font-color-of-image-title/76506)

<div class="topic-metadata">

**Author:** [@Max](https://community.elfsight.com/u/Max)\
**Replies:** 0\
**Last updated:** [October 18, 2024, 9:17am UTC](https://community.elfsight.com/t/change-font-size-and-font-color-of-image-title/76506 "2024-10-18T09:17:03Z")

</div>

Add this code to the Custom CSS field on the Style tab of your Photo Gallery widget’s settings: .eapp-photo-gallery-info-title{ color: red; font-size: 30px; } Guys, if this code was helpful to you, please drop a line…

---

## [Make title font italic](https://community.elfsight.com/t/make-title-font-italic/75133)

<div class="topic-metadata">

**Author:** [@Max](https://community.elfsight.com/u/Max)\
**Replies:** 0\
**Last updated:** [October 11, 2024, 6:31pm UTC](https://community.elfsight.com/t/make-title-font-italic/75133 "2024-10-11T18:31:44Z")

</div>

Add this code to the Custom CSS field on the Style tab of your Photo Gallery widget’s settings: .eapp-photo-gallery-photo-gallery-heading{ font-style: italic; } Guys, if this code was helpful to you, please drop a li…

---

## [Remove toolbar and the number of slide in slideshow (in popup)](https://community.elfsight.com/t/remove-toolbar-and-the-number-of-slide-in-slideshow-in-popup/75112)

<div class="topic-metadata">

**Author:** [@Max](https://community.elfsight.com/u/Max)\
**Replies:** 0\
**Last updated:** [October 11, 2024, 6:07pm UTC](https://community.elfsight.com/t/remove-toolbar-and-the-number-of-slide-in-slideshow-in-popup/75112 "2024-10-11T18:07:17Z")

</div>

Add this code to the Custom CSS field on the Style tab of your Photo Gallery widget’s settings: .global-styles, .fslightbox-nav { display: none; } Guys, if this code was helpful to you, please drop a line in the comm…

---

## [Reduce height of the photos (Columns layout)](https://community.elfsight.com/t/reduce-height-of-the-photos-columns-layout/52319)

<div class="topic-metadata">

**Author:** [@Max](https://community.elfsight.com/u/Max)\
**Replies:** 0\
**Last updated:** [May 14, 2024, 2:40pm UTC](https://community.elfsight.com/t/reduce-height-of-the-photos-columns-layout/52319 "2024-05-14T14:40:27Z")

</div>

Add this code to the Custom CSS field on the Style tab of your Photo Gallery widget’s settings: .eapp-photo-gallery-columns-main, \[class\*='CarouselItem\_\_CarouselItemContainer-sc'\] div { height: auto !important; } G…

---

## [Change font of all widget's elements](https://community.elfsight.com/t/change-font-of-all-widgets-elements/25067)

<div class="topic-metadata">

**Author:** [@Max](https://community.elfsight.com/u/Max)\
**Replies:** 0\
**Last updated:** [November 9, 2023, 12:55pm UTC](https://community.elfsight.com/t/change-font-of-all-widgets-elements/25067 "2023-11-09T12:55:16Z")

</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 your widget’s on your Photo Gallery widget’…

---

## [Change font weight of image title](https://community.elfsight.com/t/change-font-weight-of-image-title/75131)

<div class="topic-metadata">

**Author:** [@Max](https://community.elfsight.com/u/Max)\
**Replies:** 3\
**Last updated:** [October 14, 2024, 12:03pm UTC](https://community.elfsight.com/t/change-font-weight-of-image-title/75131 "2024-10-14T12:03:09Z")

</div>

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

---

## [Hide specific images on mobile (Masonry layout)](https://community.elfsight.com/t/hide-specific-images-on-mobile-masonry-layout/75127)

<div class="topic-metadata">

**Author:** [@Max](https://community.elfsight.com/u/Max)\
**Replies:** 0\
**Last updated:** [October 11, 2024, 6:23pm UTC](https://community.elfsight.com/t/hide-specific-images-on-mobile-masonry-layout/75127 "2024-10-11T18:23:49Z")

</div>

Add this code to the Custom CSS field on the Style tab of your Photo Gallery widget’s settings: @media (max-width: 600px) { .eapp-photo-gallery-masonry-item-item:nth-child(7) { display:none; } .eapp-photo-gallery-masonr…

---

## [Remove padding if the widget has background](https://community.elfsight.com/t/remove-padding-if-the-widget-has-background/75126)

<div class="topic-metadata">

**Author:** [@Max](https://community.elfsight.com/u/Max)\
**Replies:** 0\
**Last updated:** [October 11, 2024, 6:21pm UTC](https://community.elfsight.com/t/remove-padding-if-the-widget-has-background/75126 "2024-10-11T18:21:30Z")

</div>

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

---

## [Change color and background color of arrows](https://community.elfsight.com/t/change-color-and-background-color-of-arrows/75124)

<div class="topic-metadata">

**Author:** [@Max](https://community.elfsight.com/u/Max)\
**Replies:** 0\
**Last updated:** [October 11, 2024, 6:19pm UTC](https://community.elfsight.com/t/change-color-and-background-color-of-arrows/75124 "2024-10-11T18:19:53Z")

</div>

Add this code to the Custom CSS field on the Style tab of your Photo Gallery widget’s settings: .global-styles, :root { --arrow-background: #fff; --arrow-color: #000; } \[class\*="ArrowControl\_\_ArrowControlContainer-…

---

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

<div class="topic-metadata">

**Author:** [@Max](https://community.elfsight.com/u/Max)\
**Replies:** 0\
**Last updated:** [October 11, 2024, 6:15pm UTC](https://community.elfsight.com/t/hide-widget-on-desktop/75121 "2024-10-11T18:15:15Z")

</div>

Add this code to the Custom CSS field on the Style tab of your Photo Gallery widget’s settings: @media (min-width: 600px) { .eapp-photo-gallery-photo-gallery-component { display: none; } } Guys, if this code was help…

---

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

<div class="topic-metadata">

**Author:** [@Max](https://community.elfsight.com/u/Max)\
**Replies:** 0\
**Last updated:** [October 11, 2024, 6:14pm UTC](https://community.elfsight.com/t/hide-widget-on-mobile/75119 "2024-10-11T18:14:25Z")

</div>

Add this code to the Custom CSS field on the Style tab of your Photo Gallery widget’s settings: @media (max-width: 600px) { .eapp-photo-gallery-photo-gallery-component { display: none; } } Guys, if this code was help…

---

## [Change width and height of images in Columns layout](https://community.elfsight.com/t/change-width-and-height-of-images-in-columns-layout/75117)

<div class="topic-metadata">

**Author:** [@Max](https://community.elfsight.com/u/Max)\
**Replies:** 0\
**Last updated:** [October 11, 2024, 6:11pm UTC](https://community.elfsight.com/t/change-width-and-height-of-images-in-columns-layout/75117 "2024-10-11T18:11:21Z")

</div>

Add this code to the Custom CSS field on the Style tab of your Photo Gallery widget’s settings: .eapp-photo-gallery-item-data-image { max-width: 400px !important; max-height: 400px !important; } Guys, if this code wa…

---

## [Remove toolbar in slideshow](https://community.elfsight.com/t/remove-toolbar-in-slideshow/75113)

<div class="topic-metadata">

**Author:** [@Max](https://community.elfsight.com/u/Max)\
**Replies:** 0\
**Last updated:** [October 11, 2024, 6:08pm UTC](https://community.elfsight.com/t/remove-toolbar-in-slideshow/75113 "2024-10-11T18:08:11Z")

</div>

Add this code to the Custom CSS field on the Style tab of your Photo Gallery widget’s settings: .global-styles, .fslightbox-toolbar { display: none; } Guys, if this code was helpful to you, please drop a line in the …

---

## [Move pagination lower (Slider layout)](https://community.elfsight.com/t/move-pagination-lower-slider-layout/48029)

<div class="topic-metadata">

**Author:** [@Max](https://community.elfsight.com/u/Max)\
**Replies:** 0\
**Last updated:** [April 17, 2024, 6:26pm UTC](https://community.elfsight.com/t/move-pagination-lower-slider-layout/48029 "2024-04-17T18:26:07Z")

</div>

Add this code to the Custom CSS field on the Style tab of your Photo Gallery widget’s settings: .eapp-photo-gallery-slider-slider { overflow: visible !important; } .eapp-photo-gallery-pagination-component { transfor…

---

## [Change text size of Title and Description in popup](https://community.elfsight.com/t/change-text-size-of-title-and-description-in-popup/25071)

<div class="topic-metadata">

**Author:** [@Max](https://community.elfsight.com/u/Max)\
**Replies:** 0\
**Last updated:** [November 9, 2023, 1:15pm UTC](https://community.elfsight.com/t/change-text-size-of-title-and-description-in-popup/25071 "2023-11-09T13:15:49Z")

</div>

Add this code to the Custom CSS field on your Photo Gallery widget’s Style tab: /\* Title \*/ .global-styles, .fslightbox-caption-title { font-size: 50px; } /\* Description \*/ .global-style, .fslightbox-caption-descrip…

---

## [Add image border](https://community.elfsight.com/t/add-image-border/25073)

<div class="topic-metadata">

**Author:** [@Max](https://community.elfsight.com/u/Max)\
**Replies:** 0\
**Last updated:** [November 9, 2023, 1:21pm UTC](https://community.elfsight.com/t/add-image-border/25073 "2023-11-09T13:21:57Z")

</div>

Add this code to the Custom CSS field on your Photo Gallery widget’s Style tab: .eapp-photo-gallery-item-data-image { border: 2px solid #000000; }

---

## [Remove spacing between large photo and thumbnail carousel (Thumbnails layout)](https://community.elfsight.com/t/remove-spacing-between-large-photo-and-thumbnail-carousel-thumbnails-layout/25075)

<div class="topic-metadata">

**Author:** [@Max](https://community.elfsight.com/u/Max)\
**Replies:** 0\
**Last updated:** [November 9, 2023, 1:30pm UTC](https://community.elfsight.com/t/remove-spacing-between-large-photo-and-thumbnail-carousel-thumbnails-layout/25075 "2023-11-09T13:30:34Z")

</div>

Add this code to the Custom CSS field on your Photo Gallery widget’s Style tab: .eapp-photo-gallery-thumbnails-second { margin-top: 0; }

---

## [Add background and highlight descrtiption in popup](https://community.elfsight.com/t/add-background-and-highlight-descrtiption-in-popup/25076)

<div class="topic-metadata">

**Author:** [@Max](https://community.elfsight.com/u/Max)\
**Replies:** 0\
**Last updated:** [November 9, 2023, 1:31pm UTC](https://community.elfsight.com/t/add-background-and-highlight-descrtiption-in-popup/25076 "2023-11-09T13:31:45Z")

</div>

Add this code to the Custom CSS field on your Photo Gallery widget’s Style tab: .global-styles, .fslightbox-caption-body { background: rgba(0, 0, 0, 0.5); padding: 20px; } .global-styles, .fslightbox-caption-title {…

[Next page](https://community.elfsight.com/c/css-codes/photo-gallery/174.md?page=1)
