Is there a filter to change the word "Month" to "Calendar" for "View As" ?

Home Forums Calendar Products Events Calendar PRO Is there a filter to change the word "Month" to "Calendar" for "View As" ?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #109181
    Nicholas Rios
    Participant

    I’m looking to only alter the select’s wording, not any other functionality tied into this. I just want the Month option to display as “Calendar” for users.
    <br><br>
    I tried searching the API docs and the code itself but mostly found JS stuff.

    #109346
    Kelly
    Participant

    Hi, mandr. Great question! 🙂

    It’s certainly possible to change that word using a translation, but that would affect all instances of the word wherever it’s translatable. Because of the way that it’s called, I’m afraid it wouldn’t be easy to change it there, and there alone.

    Sorry I don’t have better news for you. Is there anything else that I can help you with?

    #109400
    Kelly
    Participant

    Hi, mandr. It turns out, upon further research, there is something you can do.

    Basically, you’ll want to start out making a template override of the bar.php file. If you haven’t done one of these before, you’ll want to check out our Themer’s Guide, linked in the sidebar.

    Once you’re comfortable with that, you’ll want to look into adding a snippet right after line 19 where it says

    $views   = tribe_events_get_views();"

    Here’s an example of the code you’d need: http://pastebin.com/qtuKcN6z You’ll just want to change “Super Month View” to “Calendar” and remove the line about the List entirely (for your scenario).

    Please give that a shot and let me know how it goes! 🙂

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Is there a filter to change the word "Month" to "Calendar" for "View As" ?’ is closed to new replies.