• Resolved dave924

    (@dave924)


    I’m trying to do something simple and customize the message that says:
    There are no upcoming events at this time.

    I’ve followed the theming guides and customization guides but I’m wondering if they are out of date? To check this, I’ve tried editing the plugin directly.

    I can see that this message is found at /plugins/the-events-calendar/src/views/widgets/list-widget.php

    However, if I directly edit this line:
    <p><?php printf( esc_html__( 'There are no upcoming-- %s at this time.', 'the-events-calendar' ), $events_label_plural_lowercase ); ?></p>

    I do not see any changes. I’ve tried clearing the cache, and multiple browsers. I’ve checked the server version really is different and more.

    Am I not in the right place? Surly this is something others are trying to customize right?

    Thanks for your help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor András Guseo

    (@aguseo)

    Hi @dave924

    I see this is marked resolved.

    I guess you found the string ‘There are no upcoming %1$s.’
    in wp-content/plugins/the-events-calendar/src/Tribe/Views/V2/Messages.php:100

    The way to change it is either in the file, but that change will be lost when the plugin is updated.

    Another approach would be changing it via the translation files. If your using the US English language, then you will need the-events-calendar-en_US.po and .mo files. Do the translation there and put the files under wp-content/translations/plugins

    Hope this helps.

    Cheers,
    Andras

    Thread Starter dave924

    (@dave924)

    András, thanks for the complete response. I realized I was looking at the wrong file. I couldn’t find a way to close out my post or delete it. But this response will hopefully help others. The translation file is very nice to use!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Events Calendar Customizing Widgets’ is closed to new replies.