Problem accessing appointment hours

I'm having a JavaScript problem on my appointments page, it is not loading a function, and the user can't make an appointment when they click on the date, it doesn't open the hour table, can you help me?

  • Ash
    • WordPress Hacker

    Hello shelvene

    The issue is with your child theme. You have modified the enqueue process which is not correct:

    function remove_head_scripts() {
       remove_action('wp_head', 'wp_print_scripts');
       remove_action('wp_head', 'wp_print_head_scripts', 9);
       remove_action('wp_head', 'wp_enqueue_scripts', 1);
    
       add_action('wp_footer', 'wp_print_scripts', 5);
       add_action('wp_footer', 'wp_enqueue_scripts', 5);
       add_action('wp_footer', 'wp_print_head_scripts', 5);
    }
    add_action( 'wp_enqueue_scripts', 'remove_head_scripts' );

    I have deactivated the code by commenting the last line and it seems not error appears on the console anymore.

    Please check and let us know. Have a nice day!

    Cheers,
    Ash

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.