title: Styling datepicker: highlight specific dates
body: <p>I know that this question has been asked before that the 'solutions' i found so far don't seem to work.</p>
  
  <p>I am using the Contact Form 7 and datepicker plugin on my wordpress website. The contact form and the calendar work just fine but I wanna be able to highlight specific dates by changing the background color of those dates.</p>
  
  <p>Here's the code that I have included in my header file:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
    $(document).ready(function() {
      var SelectedDates = {};
      SelectedDates[new Date('07/26/2016')] = new Date('07/26/2016');
      $('#datepicker123').datepicker({
        beforeShowDay: function(date) {
          var Highlight = SelectedDates[date];
          if (Highlight) {
            return [true, "Highlighted", Highlight];
          }
          else {
            return [true, '', ''];
          }
        }
      });
    });
  &lt;/script&gt;
  </code></pre>
  
  <p>In my style.css sheet, I have included the following code to add the styling to those dates:</p>
  
  <pre><code>.Highlighted a{
     background-color : #1AAFFF !important;
  }
  </code></pre>
  
  <p>However, the date in this example (7/26/2016) does not get highlighted when I click on the calendar but the standard styling appears. Where's my mistake?</p>
  
  <p>Many thanks for your help!</p>
  
  <p>Edit: The HTML code seemed super long so here's the link to the website: <a href="http://www.kyte-aero.de/anfragen/" rel="nofollow noreferrer">KYTE</a></p>
  
  <p>Edit 2: So i've added the following code to my functions.php file:</p>
  
  <pre><code>function wpse_enqueue_datepicker() {
    // Load the datepicker script (pre-registered in WordPress).
    wp_enqueue_script( 'jquery-ui-datepicker' );
  
    // You need styling for the datepicker.
    // For simplicity I've linked to Google's hosted jQuery UI CSS.
    wp_register_style( 'jquery-ui', 'http://code.jquery.com/ui/1.11.2/themes/smoothness/jquery-ui.css' );
    wp_enqueue_style( 'jquery-ui' );  
  }
  
  add_action( 'wp_enqueue_scripts', 'wpse_enqueue_datepicker' );
  </code></pre>
  
  <p>still not working.</p>