Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #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.

    #335742

    Hey!

    Try changing that in /enfold/config-events-calendar/views/default-template.php, line 10.

    Regards,
    Josue

    #335751

    I 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!

    #335782

    Hi,

    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,
    Josue

    #335799

    I 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?

    #335856

    Hi,

    Indeed, that would be ideal. Can you please create us a WordPress administrator account? post it here as a private reply.

    Regards,
    Josue

    #335870
    This reply has been marked as private.
    #336022

    Hi!

    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,
    Josue

    #336256

    Ok, 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!

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘The event calendar issues’ is closed to new replies.