Using Appointments+ for regular weekly bookings

Hi,
I intend to use the Appointments+ plugin to receive regular bookings by day instead of date specific bookings (for example, every Monday at 10am). I have set my calendar to show a week instead of a month and for the most part this looks like it will be enough. I just need to:
1- remove the tooltip that shows the date
and 2- Change the wording for the Appointment Confirmation to show Day and Time instead of Date and Time.

Can you guide me in getting these done?

thanks!

  • Jude

    Howdy @Ysa

    Sorry about the delay, some bits in the code took a while to test

    1) Remove button to next week

    .appointments-pagination {
        display: none;
    }

    2) Remove line that says Our schedule from.....

    .appointments-wrapper h3 {
        display: none;
    }

    3) Change date and time to day and time

    add_filter( 'app_confirmation_start', 'change_app_datetime' , 10 , 2 ) ;
    add_filter( 'gettext', 'change_app_text' , 10 , 3 ) ; 
    
    function change_app_datetime (  $formatted , $start ) {
    
       return date_i18n('l, g:i A', $start) ;
    
    }
    
     function change_app_text( $translated_text, $untranslated_text, $domain ) {
    
      switch ( $untranslated_text ) {
                case 'Date and time: ' :
                $translated_text = 'Day and time: ';
                break;
            }
      return $translated_text ;
    }

    Just copy/paste the code into the functions.php file of your child theme or a site specific plugin if you use one.

    4) Hide the tooltips

    add_action('wp_footer', 'custom_JS') ; 
    
    function custom_JS() {
    echo <<<JS
    <script type="text/javascript">
    jQuery(document).ready(function($){
      $("table > tbody > tr > td").hover(function(){
        $(this).attr("tooltip-data", $(this).attr("title"));
        $(this).removeAttr("title");
      }, function(){
        $(this).attr("title", $(this).attr("tooltip-data"));
        $(this).removeAttr("tooltip-data");
      });
    });
    </script>
    JS;
    }

    Again just copy/paste the code into the functions.php file of your child theme or a site specific plugin if you use one.

    Hope that helps

    Jude

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.