Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1004230

    Hi
    1: https://maskenzauber.com/event/1-fuerstenfelder-ritterspiele/
    Here (and in all other events) the breadcrumb contains a doubled element:
    Sie befinden sich hier:Startseite/Veranstaltungen/Events/ MPS – Mittelalterfestival
    The bolded elements are doubled and both lead to the same URL
    Screenshot:
    https.//maskenzauber.com/temp/events.jpg

    2: Here is the same – doubled element – one of them has no a href:
    https://maskenzauber.com/events/

    Of course one of the double elements has to be removed
    We use a child theme.

    Above that the “title” is still in english although the WP settings are “german”

    Please let me know how to fix these issues

    maren

    #1004401

    Hey Maskenzauber,

    Please add this code to the child theme functions.php to remove the “Events” breadcrumb item:

    
    add_filter( 'avia_breadcrumbs_trail', 'avia_breadcrumbs_trail_mod', 50, 2 );
    function avia_breadcrumbs_trail_mod( $trail, $args ) 
    {
    	foreach ($trail as $key => $value)
    	{
    		if(strpos($value, 'maskenzauber.com/events/') !== false && strpos($value, 'Events') !== false)
    		{
    			unset($trail[$key]);
    		}
    	}
    	return $trail;
    }
    

    To translate the events calendar page title you can use this code:

    
    add_filter('avf_title_args', 'avf_title_args_mod', 99, 2);
    function avf_title_args_mod($args,$id)
    {
         if ( $args['title'] == 'Calendar of Events' ) 
         {
            $args['title'] = 'Veranstaltungskalender';
         }
        return $args;
    }
    

    and replace the word “Veranstaltungskalender” with some custom text if necessary.

    Best regards,
    Dude

    #1007581

    Hi Dude
    that worked perfect.
    Thanx a lot
    maren

    #1007889

    Hi,

    Great, glad I could help you :)

    Best regards,
    Peter

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Doubled Breadcrumb-element & translation issue’ is closed to new replies.