Enable Sticky Months in Booking Calendar
Activates the sticky months feature in JetBooking calendar filters, ensuring the selected month remains fixed during calendar navigation.
Specifications
Enable Sticky Months in Booking Calendar
7 January, 2026
-
Plugin
-
Category
-
Programming languages
Installing Instruction
- Copy the provided JavaScript code snippet to your clipboard.
- Add the code using one of the following methods:
-
Option A: Using a Custom Code Plugin (Recommended)
- Install and activate a plugin such as WPCode Lite, Code Snippets, or Simple Custom CSS and JS.
- Create a new JavaScript snippet.
- Paste only the JavaScript code, without <script> tags.
- Save and activate the snippet.
-
Option B: Using a Custom Code / HTML Area
- Add the code in a Custom HTML widget or directly into a theme file (for example, header.php or footer.php).
- Keep the <script> tags when using this method.
- Save your changes.
-
Option A: Using a Custom Code Plugin (Recommended)
Example Use Case
Use this snippet to improve the calendar UI/UX by preserving the active month view between calendar reloads, providing a smoother booking experience.
This feature is useful in JetBooking-based sites with calendar-heavy booking processes.
Applicable scenarios:
- Maintaining selected month while switching calendar filters.
- Enhancing user experience for long-term or multi-month bookings.
- Implementing persistent UI states in booking calendars.
Specifications
Enable Sticky Months in Booking Calendar
7 January, 2026
-
Plugin
-
Category
-
Programming languages