-
AuthorPosts
-
October 11, 2014 at 12:50 am #334125
Hey, I am having a few issues when using the event calendar. Some are bugs on their plugin but some are theme related.
One that I have not been able to figure out is the page title that gets assigned to the template. I’ve looked thoroughly and this is not coming from a translation nor the plugin (it is outside the output of the plugin).
For example, in the grid view it reads “Calendar of Events” and I can’t find where to change this anywhere. It is not in their languages files, it is not in the plugin and it is within the blocks of HTML that the theme outputs but I can’t find this anywhere.
Would appreciate some help.
Thanks.
October 14, 2014 at 9:10 pm #335742Hey!
Try changing that in /enfold/config-events-calendar/views/default-template.php, line 10.
Regards,
JosueOctober 14, 2014 at 9:25 pm #335751I noticed that a little earlier today and found the string to translate. I did translate it but it didn’t have any effect on the front end. I’ve translated everything else without issues but that one in particular will not change.
I have a feeling it has something to do with the text-domain it is using. I know I could manually change on that template but that will get lost on an update, so ideally would like for it to work correctly when translating or modify that via the child theme if possible.
Thanks!
October 14, 2014 at 10:25 pm #335782Hi,
You can put this code to your child functions.php:
add_action('tribe_events_template', 'avia_events_tempalte_paths', 10, 2); function avia_events_tempalte_paths($file, $template) { $redirect = array('default-template.php' , 'single-event.php' , 'pro/map.php' ); if(in_array($template, $redirect)) { $file = get_stylesheet_directory_uri() . "config-events-calendar/views/".$template; } return $file; }
Then you’d duplicate the /config-events-calendar/views/ content and structure to your child theme directory.
Regards,
JosueOctober 14, 2014 at 11:18 pm #335799I appreciate your efforts here Josue, is there anyway the language string could be corrected instead? I feel that would be ideal. Duplicating those files, while it will save me from having breaks on updates it may also result in me not getting changes done to them when updating or having to manually change them.
How can we get the language string to work properly? is it a bug that it is on a different text-domain?
October 15, 2014 at 2:16 am #335856Hi,
Indeed, that would be ideal. Can you please create us a WordPress administrator account? post it here as a private reply.
Regards,
JosueOctober 15, 2014 at 3:03 am #335870This reply has been marked as private.October 15, 2014 at 10:01 am #336022Hi!
The bug seems to be related to the textdomain indeed, one easy fix is to change this line in /config-events-calendar/views/default-template.php:
$title = tribe_is_month() ? __('Calendar of Events', 'tribe-events-calendar') : tribe_get_events_title(false);
To:
$title = tribe_is_month() ? __('Calendar of Events', 'avia_framework') : tribe_get_events_title(false);
I’ll report this so hopefully a definitive solution will be included in the next update.
Regards,
JosueOctober 15, 2014 at 5:17 pm #336256Ok, that’s great. I will do that. Hopefully this can be included in a future update so that I don’t lose my modification.
Thanks again for all your help!
-
AuthorPosts
- The topic ‘The event calendar issues’ is closed to new replies.