How to show full name of the month?

Home Forums Calendar Products Events Calendar PRO How to show full name of the month?

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #83235
    petrivirta
    Participant

    I’m using events calendar PRO and an mini-calendar widget.

    How could I change that widget will show the full name of the month instead first three letters? (dec->december)

    #83239
    elixirlab
    Participant

    Hello you just have to change the settings in wordpress general settings…the event calendar take the same format as the default settings of wordpress…for the full month it’s “F” january to december
    for example l j F Y give you monday 24 december 2013

    #83240
    elixirlab
    Participant

    the F replace the M in the date format…look this link for all you need with date format http://php.net/manual/fr/function.date.php

    #83326
    petrivirta
    Participant

    I wanna show full month in widgets month picker.
    I changed ‘M’ to ‘F’ in file public/template-tags/widgets.php , but it’s not working. It shows nothing then. What is the right place to put that ‘F’ or what another files I need to change?

    What is

    #83332
    Barry
    Member

    Hi petrivirta,

    I’m guessing you mean the date at the top of the calendar widget and no where else – “Dec” in the example below?

    Calendar widget screengrab

    If so, please review our Themer’s Guide first of all: you would probably in this case be interested in overriding and customizing pro/widgets/mini-calendar/grid.php – locate this piece of code:

    <?php tribe_events_the_mini_calendar_title(); ?>

    Which you might change to:

    <?php
    $args = tribe_events_get_mini_calendar_args();
    echo date_i18n( 'F Y', strtotime( $args['eventDate'] ) )
    ?>

    Does that help here?

    #83339
    petrivirta
    Participant

    Yes, that was the thing I was looking for!:)

    Thaks for that and merry christmas.:)

    #83349
    Barry
    Member

    Happy to help … and merry christmas to you also!

    If you have a moment and wished to post a review of The Events Calendar on our wordpress.org page that would certainly be appreciated.

    Thanks again for posting and thanks also to @elixirlab for helping out here 🙂

    #982857
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘How to show full name of the month?’ is closed to new replies.