• Resolved ncneska

    (@ncneska)


    Hi! Hopefully small request but I can’t figure out how to do it. On the month view, I’d like to move the text “Events for the month of xxx” to just above the calendar itself — so in between the links to navigate to the previous month and the next month. Your help is appreciated!

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hey there @ncneska!

    Thanks for reaching out.

    This is a mix of WordPress page templates and our Tribe templating system. Unfortunately theme customizations are out of scope within our free support, but I can point you to our Themer’s Guide — this will show you how to customize every aspect of The Events Calendar.

    Take care,
    Ed ??

    Thread Starter ncneska

    (@ncneska)

    Ah, I understand. Thanks for the link to the customization instructions! I didn’t notice that!

    Is it possible to simply add the current month name centered above the calendar, in between the previous and next month names? I tried messing with the nav.php file, which is where I *think* something could go, but I’m not sure what to do from there!

    Any help is appreciated!

    This snippet, when placed in your child theme’s functions.php file should do the trick for part of what you are doing.

    function custom_month_title( $title ) {
    	if ( ! tribe_is_month() || false === strpos( $title, 'Events for' ) ) {
    		return $title;
    	}
    
    	return str_replace( 'Events for', '', $title );
    }
    
    add_filter( 'tribe_get_events_title', 'custom_month_title' );

    You are correct about the file, nav.php — but unfortunately there’s not really an easy way about moving that month name. Since the pagination links are formatted as an unordered list, there would be some extra styling involved there as well.

    Sorry I don’t have a better answer for you!

    Take care,
    Ed ??

    Thread Starter ncneska

    (@ncneska)

    No luck, but thank you so much for replying! ?? I appreciate the great support for this plugin!

    You’re very welcome — sorry that didn’t work out for you.

    I’ll leave this thread open for a while longer in case you want to take another shot at it need some assistance.

    Take care,
    Ed ??

    Hey there,

    Since this thread has been inactive for a while, I’m going to go ahead and mark it as resolved. Don’t hesitate to create a new thread any time you help again!

    Ed ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Move current month name in between links to prev and future month’ is closed to new replies.