For the complete documentation index, see llms.txt. This page is also available as Markdown.

Add a date picker to your store

Follow the steps below to add a date picker or calendar to your store.

Before you get started

There are two ways to add a date picker. The best option depends on how much customization you need.

Method 1: Date Picker input type: Select the Date Picker input type directly in Infinite Options. This is the quickest setup option and does not require adding any code. The calendar design will use the browser’s built-in date picker.

Method 2: Custom date picker calendar: Add a snippet of code and CSS to your theme to create a custom calendar. This option requires editing your theme code, but provides more control over the calendar’s appearance and styling

Method 1: Use the Date Picker Input Type

  1. Open the Infinite Options app.

  2. Create a new option or edit an existing option.

  3. Set the Input Type to Date Picker.

Your date picker field will now display using the browser’s built-in calendar

  1. Assign to products

  1. Save your changes.

Method 2: Add a Custom Date Picker Calendar

This method adds a custom calendar using additional scripts and CSS.

Heads up: This feature only supports one date picker on a product page at this time.

Add the Date Picker Script to Your Theme

  1. From your Shopify admin, go to Online Store > Themes.

  2. Click ... > Edit code on your current theme.

  3. Under the Layout folder, open the theme.liquid file.

  4. Search for the closing head tag:

  1. Copy the script below and paste it directly before the closing </head> tag.

  2. Click Save.

Here is how the code snippet will look pasted into the theme file:

Add CSS Styles

Next, add the CSS that controls the appearance of the custom calendar.

  1. Open the Infinite Options app.

  2. Select Settings from the left sidebar.

  3. Locate the Custom CSS section.

  1. Copy the CSS snippet below and paste it below any existing CSS.

  1. Click Save.

Your custom date picker calendar is now ready.

For additional customization options, check out our date picker customization guide.

Last updated