Move next and previous month to top of calendar

Home Forums Calendar Products Events Calendar PRO Move next and previous month to top of calendar

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1295037
    Linda
    Participant

    Hi I’d like move the links for the next and previous month from the bottom of the calendar to the top. How can this be achieved?

    https://www.dropbox.com/s/6lt4gz8gi86pjst/Screenshot%202017-06-08%2002.09.28.png?dl=0

    I would also like to change when there is no event for given search. The search is only for the current month. The text that shows if there are no results is as follows:

    https://www.dropbox.com/s/5zv96gl5vqv627b/Screenshot%202017-06-08%2002.10.48.png?dl=0

    I like it to say: “There were no results found. Try the next month.

    #1296075
    Jennifer
    Keymaster

    Hi Linda,

    Thanks for reaching out!

    You can get those links on the top of your calendar by changing theĀ Default stylesheet used for events templates setting to “Full Styles” (found under Events > Settings > Display). They will still appear on the bottom as well, but if you don’t want them on the bottom, you can add this to your custom CSS area under Appearance > Customize (if your theme offers one) or in your child theme’s style.css file:


    #tribe-events-footer .tribe-events-sub-nav {
    display: none;
    }

    To change that message, try adding this snippet to your functions.php file:


    // Changes the no results notice in The Events Calendar
    add_filter( 'tribe_the_notices', 'customize_notice', 10, 2 );

    function customize_notice( $html, $notices ) {

    // If text is found in notice, then replace it
    if( stristr( $html, 'There were no results found.' ) ) {
    // Customize the message as needed
    $html = str_replace( 'There were no results found.', 'There were no results found. Try the next month', $html );
    }

    return $html;

    }

    Let me know how that works for you!

    Thanks,

    Jennifer

    #1315003
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Move next and previous month to top of calendar’ is closed to new replies.