• Resolved Erica

    (@pride2)


    Pretty Google Calendar works really well for making a Google Calendar showing available dates to schedule an event accessible to the public. In our case, we want people to know when there is availability for them to host a charter (we operate a ship) so I embedded a specific Google Calendar on our Charters & Receptions page. Our sailing season is usually March through October. The one tweak that would make the calendar more user-friendly would be to limit the months that show on the calendar so that users don’t have to scroll through months when the ship isn’t operating. Is there a shortcode parameter to do this? Or a parameter to “skip over” empty months?

    Since the plugin is free, I’m not complaining, but thought that I would ask my question anyway:)

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author LBell

    (@lbell)

    Howdy!

    Did you try list_type=”listYear”? That should compress everything into one list.

    If that doesn’t work, I don’t have a better solution. Hiding specified months is not supported.

    Thanks!

    Thread Starter Erica

    (@pride2)

    Thank you, @lbell. I hadn’t tried list_type=”listYear.” I did, though, after reading your response, but it didn’t have any effect. Thank you for the suggestion, though.

    Update: User error! listCustom in my original shortcode had to be changed because it was overriding any new list_type. Original shortcode: [pretty_google_calendar gcal=”pride2.org_i6g5r7g25o2hha8hg2u8n1f7j4@group.calendar.google.com” initial_view=”listCustom” views=”listCustom” enforce_listview_on_mobile=”true”]

    Using new shortcode, & choosing listMonth, rather than listYear, accomplished what I wanted. New shortcode: [pretty_google_calendar gcal=”pride2.org_i6g5r7g25o2hha8hg2u8n1f7j4@group.calendar.google.com” list_type=”listMonth” views=”listMonth” initial_view=”listMonth” show_today_button=”false” enforce_listview_on_mobile=”true”]

    Now, our calendar is much more user-friendly.

    This was my first time customizing any shortcode, so I am quite pleased with the result & glad that I found Pretty Google Calendar.

    • This reply was modified 3 years, 3 months ago by Erica.
    Plugin Author LBell

    (@lbell)

    Glad you got it sorted, and thanks for sharing your fix.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Setting Months/Date Range’ is closed to new replies.