Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #447306

    I’m wondering what is the latest state of the solution for the problem described here for the Replete template.

    As the poster in the topic liked above says, what happens is the title of the page picks up the title of the first event instead of “Events,” “Upcoming Events,” etc. Thus: http://centerforworldmusic.org/events/

    The folks over at theeventscalendar.com referred me to the solution linked above in this thread.

    My concern is that (1) this solution is for the Replete template and (2) I don’t find a single line in the “page.php” reading “echo avia_title();”

    That instruction does occur, but it’s part of a longer line, and I’m not at all sure how to replace it.

    #448550

    Hi,

    Can you please create us a WordPress administrator account? post it here as a private reply.

    Regards,
    Josue

    #448556
    This reply has been marked as private.
    #448567

    Hey!

    Check it now, i modified your “Fix for Event Titles Becocming Page Titles on The Events Manager Pro” snippet to:

    add_filter('avf_title_args', function($args) {
    
    	if(tribe_is_past() || tribe_is_upcoming() && !is_tax()){
    		$args['title'] = "CWM Events";
    		$args['link'] = "";
    	}
    
    	return $args;
    
    }, 10, 1);

    Best regards,
    Josue

    #448683

    Many thanks, Josue. Activating the above code in my Code Snippets plugin, as you did, accomplished the necessary. Brilliant!

    #448686

    You are welcome, glad to help :)

    Regards,
    Josue

    #448693

    Ooops, sorry. I spoke a tad too soon. The code works on the list view, but not on the calendar view, which behaves as before. Is a further tweak needed?

    http://centerforworldmusic.org/events/month/

    #448704

    Yeah, check it now:

    add_filter('avf_title_args', function($args) {
    
    	if(tribe_is_past() || tribe_is_month() || tribe_is_upcoming() && !is_tax()){
    		$args['title'] = "CWM Events";
    		$args['link'] = "";
    	}
    
    	return $args;
    
    }, 10, 1);

    Regards,
    Josue

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.