Appointments+ Next Month button not working in Avada Theme

Hi,

I can't get my Next Month button to work in the Avada Theme. If I try a different theme it seems to work. Any help much appreciated!

  • Ash
    • WordPress Hacker

    Hello @Kieran

    Welcome to WPMU community!

    I hope you are well today and thanks for asking the question.

    Please add the following code in your child theme's footer.php after wp_footer():

    <script type="text/javascript">
    jQuery(function($) {
      $('.previous a, .next a').click(function() {
        window.location.href=$(this).attr('href');
      });
    });
    </script>

    Hope it helps :slight_smile: Please feel free to ask more question if you have.

    Cheers
    Ash

  • Kieran
    • The Crimson Coder

    Hi Ash

    Thanks for the reply. Unfortunately I added that code in and now my website seems to have crashed. It's probably unrelated!

    My Avada Child Theme function.php file is as follows

    <?php
    function avada_child_scripts() {
    if ( ! is_admin() && ! in_array( $GLOBALS['pagenow'], array( 'wp-login.php', 'wp-register.php' ) ) ) {
    $theme_info = wp_get_theme();
    wp_enqueue_style( 'avada-child-stylesheet', get_template_directory_uri() . '/style.css', array(), $theme_info->get( 'Version' ) );
    }
    }
    add_action('wp_enqueue_scripts', 'avada_child_scripts');

    I don't see any wp_footer so pasted it at the bottom and now everythings crashed. I'll give it a little while and hopefully it will kick back into life and I can try again. Should pasting the code in at the end be ok?

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.