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

    Hi
    we already have this situation in our breadcrumb:
    Home–>PostURL–>Category–>Posttitle
    This looks more like a bug and should be like this:
    Home–>Category–>Posttitle

    Since we are not using categorys (we use pages and ALB-Element “Blog”) we need a breadcrumb like this:
    Home–>PageURL–>Posttitle

    Here is the URL to our development-area:

    Regards Joanna

    #822107

    Hey digitalprint2222,
    Try adding this code to the end of your functions.php file in Appearance > Editor:

    add_filter( 'avia_breadcrumbs_trail', 'remove_category_from_breadcrumb', 50, 2 );
    function remove_category_from_breadcrumb( $trail, $args ) {
    	if ( is_single() ) {
    		unset ($trail[1]);
    		unset ($trail[2]);
    	}
    	return $trail;
    }

    Best regards,
    Mike

    #850171

    Hello Mike
    thanx – that helped to get rif of the doubling
    Now we got:
    “Du bist hier:Startseite / Unterwasserfotografie: faszinierend und anspruchsvoll” (Home / Posttitle)
    Is there a way to get Home–>PageTitle–>Posttitle
    Otherwise the breadcrumb doesnt make to much sense
    Regards Joanna

    #850176

    Hi,
    Try changing to:

    add_filter( 'avia_breadcrumbs_trail', 'remove_category_from_breadcrumb', 50, 2 );
    function remove_category_from_breadcrumb( $trail, $args ) {
    	if ( is_single() ) {
    		unset ($trail[1]);
    	}
    	return $trail;
    }

    Best regards,
    Mike

    #850641

    Hi
    no, sorry – that didnt work.
    As i said before: “Since we are not using categorys (we use pages and ALB-Element “Blog”) we need a breadcrumb like this:
    Home–>Page–>Posttitle”

    Your code gives us a Home–>Category–>Posttitle and that gives our users the runaround

    Regards Joanna

    #850907

    Hi Joanna,

    Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?

    Best regards,
    Victoria

    #852515

    Hello Victoria,
    no – we cant since its on localhost
    Regards Joanna

    #853563

    Hi,

    Let us know when u are online./

    Best regards,
    Basilis

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