How-to guide

A slideshow on the home page

The Slider block turns each cell into a slide with arrows. Visitors can also swipe on phones.

Steps

  1. On the home page, select the first block and choose Insert › Add section above it (or “Add section at the top of the page”).

  2. Select the new block, open Block and switch the type to Slider.

  3. Each cell is one slide. Use Block › Add cell for more slides, and the cell order buttons to sort them.

  4. Click into a slide and use Insert › Picture. Add a heading and a button under it.

  5. In Section, set the width to full for an edge-to-edge slideshow. Save.

CSS

/* Slides with the text on top of the picture */
.jc-slider .jc-cell { position: relative; }
.jc-slider .jc-cell img { width: 100%; height: 520px; object-fit: cover; display: block; }
.jc-slider .jc-cell h2,
.jc-slider .jc-cell p { position: absolute; left: 6%; right: 6%; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.jc-slider .jc-cell h2 { bottom: 120px; font-size: clamp(1.8rem, 4vw, 3rem); }
.jc-slider .jc-cell p { bottom: 50px; }
@media (max-width: 640px) { .jc-slider .jc-cell img { height: 360px; } }

Prompt for your AI

In my JoodCMS kit, add a Slider block as the first section of the home page (p-home) with 3 slides.
Each slide (cell) has one picture from /uploads/, an h2 and a paragraph with a button link.
Topics: [slide 1], [slide 2], [slide 3]. Add the CSS for text over the pictures to theme.json.
Keep all other ids and content unchanged and return the complete kit.

← All guides

made by Content Management System