GeneratePress Theme Customization: Modern Custom CSS Styling for Buttons, Images & Widgets

Siddarth Parthiban

The provided CSS code styles various UI components of a WordPress website to ensure a modern consistent & visually appealing design. Each section targets specific elements such as buttons images widgets & search functionality applying cohesive colors shadows & rounded corners for a polished appearance.

/* Read More Button */
a.gb-button {
  background: linear-gradient(to right, #1CB0FE 0, #12D7FA 51%, #1CB0FE 100%) !important;
  font-size: 14px;
  padding: 10px 25px;
  text-align: center;
  transition: 0.5s;
  background-size: 200% auto;
  color: #fff;
  box-shadow: rgba(23, 43, 99, 0.3) 0 7px 28px;
  border-radius: 120px;
}

/* Archive Featured Image */
.gb-block-image img {
  vertical-align: middle;
  border-radius: 12px;
  box-shadow: rgba(23, 43, 99, 0.2) 0 7px 28px !important;
}

/* Post Featured Image */
.page-header-image-single .attachment-full {
  border-radius: 25px;
  box-shadow: rgba(23, 43, 99, 0.3) 0 7px 28px;
}
.size-auto, .size-full, .size-large, .size-medium, .size-thumbnail {
  max-width: 100%;
  height: auto;
}

/* Search Button */
.wp-block-search__button {
  border-radius: 20px;
  font-size: 13px !important;
  padding: 8px 20px !important;
  text-align: center;
  color: #fff !important;
  box-shadow: rgba(23, 43, 99, 0.3) 0 4px 28px !important;
  background-color: #1CB0FE;
}

/* Sidebar Widget Title */
.widget-title {
  padding: 10px;
  background: linear-gradient(to right, #1CB0FE 0, #12D7FA 51%, #1CB0FE 100%) !important;
  border-radius: 10px;
  font-weight: 500;
  color: #fff !important;
  font-size: 18px !important;
  text-align: center;
  box-shadow: rgba(23, 43, 99, 0.3) 0 7px 28px;
}

/* Recent Posts Widget Thumbnails */
#rpwwt-recent-posts-widget-with-thumbnails-1 img {
  width: 50px;
  height: 50px;
}
.rpwwt-widget ul li img {
  float: left;
  margin: 0.2em 0.75em 0.75em 0;
  display: inline;
}
.rpwwt-widget img {
  border-radius: 4px;
}

/* Sidebar Widget Area */
.widget-area .widget {
  padding: 30px;
}

1. Read More Button

The .gb-button class is used to style call-to-action buttons with a vibrant gradient background, rounded edges, and smooth transitions. The gradient moves from blue to cyan and back, giving it a dynamic look. A soft shadow and a pill-shaped border-radius of 120px enhance its prominence on the page.

2. Archive Featured Image

Images within .gb-block-image are vertically aligned and styled with slightly rounded corners (12px) and a subtle box shadow. This helps maintain image consistency and adds depth to visual elements across the archive layout.

3. Post Featured Image

Post headers that use .page-header-image-single with full-size images (.attachment-full) receive a slightly larger border-radius (25px) and a shadow for a sleek, elevated effect. Common image classes like .size-auto, .size-full, etc., are restricted to a responsive width with auto height to ensure images scale correctly across devices.

4. Search Button

The .wp-block-search__button is styled with a blue background, white text, and rounded corners. The padding and font size are adjusted for readability and clickability, while the box-shadow adds a subtle 3D effect. !important flags are used here to enforce styles over potential theme conflicts.

5. Sidebar Widget Title

Widget titles styled with .widget-title use the same gradient as the Read More button for branding consistency. The text is white, centered, bold, and slightly larger for emphasis. Padding, rounded corners, and shadow effects ensure it stands out in the sidebar.

6. Recent Posts Widget with Thumbnails

Images inside recent post widgets are uniformly sized to 50x50px, floated to the left, and spaced appropriately for text wrapping. A 4px border-radius gives a slight rounding effect, contributing to a softer visual style.

7. Sidebar Widget Area

Widgets within the .widget-area class receive generous internal spacing (30px) to prevent content from appearing cramped and improve readability.



Credits : Image Was generated Using https://www.canva.com/dream-lab/

This CSS ensures a cohesive & user friendly interface by using gradients consistent shadows spacing & rounded edges. It maintains brand colors across elements enhances UX & adheres to modern design principles.

To Top