Home › Forums › Calendar Products › Events Calendar PRO › Gray bar: title of date filter differs depending on view
- This topic has 5 replies, 2 voices, and was last updated 12 years ago by
Barry.
-
AuthorPosts
-
February 2, 2014 at 8:34 am #99765
Rafael
ParticipantIn the gray bar at the top there is a field where events can be filtered by date. This field consists of a title and line of text. Although that field has the same function in every view, the title differs depending on the view.
So the field’s title in list view is different from the title in month view, which in turn is different from the title in map and photo view. (But the field’s title in map and photo view is the same.)
This does not seem to make a lot of sense. But it’s not a real problem either.
What is problematic, however, is the fact that while the field’s title and textline in list view and month view are separate (they can be edited separately by editing the .po file), in map and photo view the field’s title and textline is the same. So when I try to make the field’s title the same as in list/month view, the field’s textline also changes. But I want title and textline to be separate, just like it’s the case in list and month view.
Do my explanations make sense?
Essentially what I’m trying to do is very simple. The field where events can be filtered by date should have the same title across all the different views, as well as the same textline (which in itself should be different than the title) across all views.
Can you tell me how I can achieve this?
February 4, 2014 at 6:47 am #100472Barry
MemberHi @swissvegan,
I think I see what you mean but I’d like to confirm I really am understanding you correctly. Taking the screenshot below as an example:

Is your goal basically to have Day Of display as Date on all views (albeit perhaps in a different language)?
February 5, 2014 at 6:01 am #100945Rafael
ParticipantHello Barry
Yes, looking at the example above I would like “Day of” to display as “Datum” on all views.
I can achieve this by editing the .po/.mo files. Surprisingly, there are three different strings for “Day of” depending on the view: one for list, one for month, and one for map/photo view (the same for both).
Changing them is simple enough, BUT changing that string for map/photo view ALSO changes the string underneath it in the input field. So using the example above when map/photo view is active, the text underneath “Day of” is also “Day of” (when no date is selected). It seems to be one and the same string, because changing the “Day of” title to “Date”, for example, also changes the “Day of” text below the title to “Date”. This problem exists only in map/photo view. So it seems to be a little programming bug.
What I effectively would like to do is:
A) have “Day of” display as “Datum” on all views and
B) have the text beneath it display as “…” (when no date is selected)Can you help me with that?
February 5, 2014 at 12:53 pm #101042Barry
MemberThanks, that gives me a better picture 🙂
Could you use your existing approach to set the placeholder text to … and add some code like the following to your theme’s functions.php file, updating the actual text to Datum or whatever you want to use here (I used a generic example just to avoid confusion if others are reading the thread in the future):
add_filter( 'tribe_bar_datepicker_caption', 'common_datepicker_caption', 20 ); function common_datepicker_caption() { return 'Common date label'; }Does that work?
February 6, 2014 at 6:15 am #101317Rafael
ParticipantHey Barry, adding that code did the trick! Thank you very much for your help. My issue is now resolved. 🙂
April 18, 2014 at 6:16 am #136037Barry
MemberAwesome 🙂
(Closing this out!)
-
AuthorPosts
- The topic ‘Gray bar: title of date filter differs depending on view’ is closed to new replies.
