• Resolved adadeacon

    (@adadeacon)


    Hi,

    I’ve been searching around in the code, but I can’t figure this out on my own.
    I’m building a website and I need to change the title on the calendar page where it reads “Events for November 2014” to “Calendar Entries for November 2014”.
    “Events” should read “Calendar Entries” because we have another page called Events that contain different content. The page title showing in the browser tab should also be changed to Calendar and not read Events.

    Can anyone PLEASE tell me what file I need to edit to accomplish this?

    Development site: https://hanrickcurran.azurewebsites.net/calendar/

    https://www.ads-software.com/plugins/the-events-calendar/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor leahkoerper

    (@leahkoerper)

    Hi adadeacon,

    We have a tutorial for changing the heading on the events pages that should help you out ??

    For changing the browser title, you can use the snippet Brook posted in this thread.

    Best,
    Leah

    Thread Starter adadeacon

    (@adadeacon)

    Thank you for the reply, but it’s not quite what I need. I tested it and I am able to change the title of the page, but then it removes the month.

    If you look at the page, you’ll see it opens in month view: hanrickcurranwebsite.azurewebsites.net/calendar/ (the site has been moved from the previous server)

    So it shows “Events for” and then the month that is selected. If I use the method in the tutorial, I change the whole title and I lose the month, which won’t work because then the month isn’t displayed on the page at all.

    How can I keep whatever is generating the month, and only change the two words “Events for” that comes before the current / selected month?

    Thread Starter adadeacon

    (@adadeacon)

    Any assistance…?

    Brook

    (@brook-tribe)

    Howdy adadbeacon,

    Instead of completing replacing $title in the return as that snippet shows, you could do a string replace. That would allow you to keep any bits of the existing title you want. Alternatively, and probably preferably, you could reimplement some of the logic found in tribe_get_events_title() And directly grab the date how we do in that functions.

    I hope that helps. Thanks for posting!

    – Brook

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Change the word Events in the title to Calendar Entries’ is closed to new replies.