Fields for "opening hours"

Hi,

I am looking for a way to indicate the opening hours or hours when i’m reachable on my Sydney Pro site. I hoped there would have been fields for this in the Sydney:Contact Info widget but unfortunately, there isn’t.

Shoud be something to hold information like this:

We are open:

  • Mon-Fri from 10h00 till 18h00
  • Saturday from 10h00 till 14h00

Does anyone know how i could solve this in an elegant way within the Sydney theme?

My site:

Thnx in advance,
Marnik

Hello there,

Thank you for asking.

I thought we could add those info by using jQuery .append() method.

  1. Install and activate the Header and Footer Scripts plugin
  2. Go to Settings > Header and Footer Scripts panel
  3. Paste the following code into the “Scripts in footer:”
<script>
(function($){
     $(document).ready(function(){
     
      "use strict";

      var $container = $('.sydney_contact_info_widget');

      var $newHTML = '<div class="contact-hour"><span><i class="fa fa-clock-o"></i></span>'+
                     'Mon-Fri from 10h00 till 18h00'+
                     '</div>'+
                     '<div class="contact-hour"><span><i class="fa fa-clock-o"></i></span>'+
                     'Saturday from 10h00 till 14h00'+
                     '</div>';

      $container.append($newHTML);
				 
 });
})(jQuery);
</script>
  1. Save settings

I thought it wasn’t the ultimate solution. But it should work at the moment.

Warmest regards,
Kharis