WordPress.org

Ready to get started?Download WordPress

Forums

Diary & Availability Calendar
[resolved] Removing time - showing just date (3 posts)

  1. tomchute
    Member
    Posted 1 year ago #

    Hi,
    Great, simple plugin. I would love to include on a site, but don't need the time slots - just days available or not (it's for a holiday cottage availability).

    Is there anyway of removing bits I don't need?

    Thanks in advance

    http://wordpress.org/extend/plugins/diary-availability-calendar/

  2. wuh
    Member
    Plugin Author

    Posted 1 year ago #

    You'd just need to mark which days are unavailable yourself through the plugin's settings page. Those days will appear as unavailable at the front-end. You'd probably then want to remove the "Some slots taken, see below" line from the legend. If you're comfortable editing PHP, change line 304 in diary-and-availability-calendar.php from:

    $legend .= '
      <div id="daac-legend">
        <div class="legend-item">
          <span class="available">_</span>Available all day
        </div>
        <div class="legend-item">
          <span class="bookings">_</span>Some slots taken, see below
        </div>
        <div class="legend-item">
          <span class="unavailable">_</span>Unavailable
        </div>
      </div>
    ';

    to:

    $legend .= '
      <div id="daac-legend">
        <div class="legend-item">
          <span class="available">_</span>Available all day
        </div>
        <!--<div class="legend-item">
          <span class="bookings">_</span>Some slots taken, see below
        </div>-->
        <div class="legend-item">
          <span class="unavailable">_</span>Unavailable
        </div>
      </div>
    ';

    Hope that helps

  3. tomchute
    Member
    Posted 1 year ago #

    Thank you very much - brilliant

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.