Language: English

๐Ÿš€ How to Customize Spacing Around the Slot Picker

Sometimes the slot picker sits a little too close to the elements around it โ€” or feels cramped inside its own container. A few pixels of breathing room can make it look right at home on your Cart page ๐Ÿ“

With the Spacing settings in Hoppy Delivery Dates, you can adjust the margins around each part of the picker โ€” separately for Desktop and Mobile.


๐Ÿ“Œ Before You Begin

  • Hoppy Delivery Dates is installed and the app embed is enabled in your theme
  • The slot picker is visible on your Cart page
  • You're logged in to your Shopify admin

Step 1 โ€” Open the Appearance Page

In the app navigation, go to:

Hoppy Delivery Dates โ†’ Appearance

Find the Spacing card.

The card has Desktop and Mobile tabs โ€” spacing is configured separately for each device.


Step 2 โ€” Understand the Four Spacing Groups

The card is divided into four groups, and each one controls the margin around a different part of the picker:

  • SECTION MARGIN โ†’ space around the whole slot picker section
  • HEADING MARGIN โ†’ space around the heading text (e.g. "When would you like to get this Order?")
  • DATE & TIME PICKER MARGIN โ†’ space around the date and time input boxes
  • ERROR MESSAGE MARGIN โ†’ space around error messages (shown when a customer hasn't selected a slot or is below the minimum order value)

Every group has the same four fields, all in pixels:

  • Top
  • Bottom
  • Left
  • Right

โ„น๏ธ All fields default to 10 px.


Step 3 โ€” Adjust the Margins

Enter the number of pixels you want in each field โ€” no need to type "px", it's added automatically.

Example

  • The picker is touching the checkout button โ†’ increase SECTION MARGIN โ†’ Top to 24
  • The heading feels glued to the date box โ†’ increase HEADING MARGIN โ†’ Bottom to 16
  • On mobile, the picker boxes stretch edge to edge โ†’ set DATE & TIME PICKER MARGIN โ†’ Left and Right to 0

๐Ÿ’ก Make small changes (5โ€“10 px at a time), save, and check your Cart page โ€” spacing is much easier to judge on the live page than in the fields.


Step 4 โ€” Repeat for Mobile (Optional)

Switch to the Mobile tab if smaller screens need different spacing. Mobile layouts often need tighter margins than desktop, so it's worth a quick check.


Step 5 โ€” Save and Review

Click Save at the top of the page.

Then open your store's Cart page and check the spacing on both desktop and mobile ๐Ÿ‘€


โš ๏ธ Important Notes

โš ๏ธ Desktop and Mobile spacing are independent โ€” changing one tab does not affect the other.

โ„น๏ธ These settings only control margins (space outside each element). They don't change the size of the picker itself โ€” for that, see the Slot picker container width setting covered in How to Position the Slot Picker on the Cart Page.


๐ŸŽ‰ Final Result

Once configured successfully:

โœ… The slot picker has comfortable space around it on the Cart page โœ… The heading, date & time boxes, and error messages no longer feel cramped โœ… Desktop and Mobile each get spacing that fits their screen size โœจ