Year not displaying next to month name in Month View

Home Forums Calendar Products Events Calendar PRO Year not displaying next to month name in Month View

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1419760
    EUSD Marketing
    Participant

    Hello,

    On our school district website, I have a small problem / question related to the Month View display of Events Calendar Pro:

    If you look at the attached screenshot, or go to https://eusd.org/events/month/, you’ll notice the month name / title at the top of the page simply says “January.” I would like it to say “January 2018.”

    Is there an easy or obvious way to add the year to the month name? Perhaps a PHP filter inside functions.php? I’m using tribe_get_current_month_text(); to display the month name.

    Thank you!

    Dave

    #1419944
    Crisoforo
    Keymaster

    Thanks for reaching out, and we are here to give you a hand with your problem.

    Based on the description of your issue you are looking in a way to customize the month views, we have a useful guide for Themer’s that you might find useful, however I also give a test on a clean environment with default WordPress theme and seems like the calendar is displaying:

    • EventsĀ forĀ {Month} {Year}

    Which means your theme or any other plugin is causing this problem, we suggest for you to test for any possible conflict with any theme or plugin.

    Also as you asked for a way to customize the title, as mentioned above you can follow the Themer’s guide along to do this or you can use the filter:

    tribe_events_title

    As follows to change the title before is printed in screen.

    function tribe_events_title_month( $title ) {
     return $title;
    }
    
    add_filter( 'tribe_events_title', 'tribe_events_title_month' );

    Please let me know if you have any other questions about this issue or if there’s anything else I can do for you.

    Thanks,
    Crisoforo

    #1421027
    EUSD Marketing
    Participant

    Thanks Crisoforo! Your reply definitely pointed me down the right path, and my issue is now resolved. The year is now showing next to the year, as desired. Thank you very much, I really appreciate it!

    #1421293
    Crisoforo
    Keymaster

    I’m glad this was something helpful for you. Please don’t hesitate to reach out again if you have any other questions or problems.

    Thanks,
    Crisoforo

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Year not displaying next to month name in Month View’ is closed to new replies.