Replace title "Events" with "Shows"

Home Forums Calendar Products Events Calendar PRO Replace title "Events" with "Shows"

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #135927
    Tony
    Participant

    How is this simple task performed?

    I want all instances of ‘Events’ in titles replaced with ‘Shows’ e.g. on week view ‘Events for week of %date%’ becomes ‘Shows for week of %date’.

    I have searched high and low on this site but only found old out of date answers or answers marked ‘Answered’ (with a tick) which failed to answer the question properly.

    #136623
    Barry
    Member

    Hi!

    One approach is as outlined here. You might take a more universal approach to the problem though, something like this:

    add_filter( 'gettext', 'replace_events_keyword_everywhere' );
    
    function replace_events_keyword_everywhere( $text ) {
        $text = str_replace( 'events', 'new keyword', $text );
        return str_replace( 'Events', 'New Keyword', $text );
    }

    You could also take a more fine grained approach by setting up lots of individual filters or, if you really wanted to, by actually “translating” the plugin (but only changing the use of the Events keyword).

    The above should give you a basic, working solution though – simply drop it into your theme’s functions.php file.

    I hope that helps!

    #674465
    Barry
    Member

    Hi! It’s been a while so I’m going to go ahead and close this thread (and so it will no longer be monitored by staff). If we can help with anything else, though, please don’t hesitate to create new threads as needed. Thanks!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Replace title "Events" with "Shows"’ is closed to new replies.