Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1288612

    Hi,

    I’m sorry but I couldn’t find an answer in the forum.
    I have a problem with the breadcrumb trail of my website, it displays the homepage twice when there is only one. Have you ever encountered this problem?
    (for example : Accueil » Accueil » Acheter un terrain » Acheter un terrain en lotissement)
    Thank you in advance for your answers

    Nat

    #1288916

    Hi Nat,

    Please post us your login credentials (in the “private data” field), so we can take a look at your backend.

    1. Install and activate ” Temporary Login Without Password “.
    2. Go to ” Users > Temporary Logins ” on the left-side menu.
    3. Click ” Create New “.
    4. Add the email address for the account ( you can use (Email address hidden if logged out) ), as well as the ” Role ” making that the highest possible and the expiry about four days
      ( to be sure that we have enough time to debug ).
    5. Click ” Submit “.
    6. You’ll now have a temporary account. Please provide us here in the private section the URL, so we can login and help you out.

    When your issue is fixed, you can always remove the plugin!
    If you prefer to not use the plugin, you can manually create an admin user and post the login credentials in the “private data” field.

    Best regards,
    Nikko

    #1288933

    Hi Nikko,

    You will find the login in the “private data” field.

    Thanks a lot

    Nat

    #1289346

    Hi Nat,

    Thanks for giving us admin access.
    I have fixed it on your site by adding this code in your child theme’s functions.php:

    function enfold_breadcrumbs_trail( $trail, $args ) {
      global $post;
      $ancestors = get_post_ancestors( $post->ID );
      $front_id = (int)avia_get_option('frontpage');
      foreach( $ancestors as $ancestor_id ) {
        if($front_id === $ancestor_id) {
          unset($trail[1]);
        }
      }
      return $trail;
    }
    
    add_filter('avia_breadcrumbs_trail','enfold_breadcrumbs_trail', 10, 2 );

    We’ll be reporting this bug to our devs.
    This is only a temporary fix and once this will be fixed on the next release of Enfold, please remove this code.

    Best regards,
    Nikko

    • This reply was modified 3 years, 7 months ago by Nikko.
    #1289360

    Hi Nikko,

    Thank you so much, you are great !!
    Have a nice day

    Nat

    #1289416

    Hi Nat,

    We’re glad that we could help :)
    Thanks for your nice words and also thanks for using Enfold.
    Have a great weekend!

    Best regards,
    Nikko

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Problem with breadcrumb’ is closed to new replies.