Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1481526

    Hello,

    I used the CCS provided, but it didn’t work.
    Now I have 2 Home links simultaneously, instead of one directing to the website homepage.

    https://snipboard.io/IxPd3g.jpg

    Please, help me ;)
    Leo

    #1481552

    Hey Akhurst,
    I don’t know what css you are using, but the first “home” is linked to your main domain, the second “home” is linked to your “shop.domain”
    So do you really what to remove the second “home” or have it say “Shop”?
    Please include a admin login in the Private Content area so we can examine based on your answer.

    Best regards,
    Mike

    #1481555

    Hi Mike,

    Sorry for the missing information. It’s just because Ismael told me to open another thread.
    We solved the initial issue, and I got mixed up with another topic. My bad ;)

    I want to show the correct breadcrumb information: Home (https://shop.akhurst.com/) since the website’s home page is not http://www.akhurst.com/. We use a multisite platform, but we dont have this issue with the other parent companies (Cantek, Leadermac).

    Ismael sent me this code:

    function avia_breadcrumbs_trail_mod($trail)
    {
    if ( is_product() || is_product_category() ) {
    $trail[1] = ‘Home‘;
    }
    return $trail;
    }
    add_filter(‘avia_breadcrumbs_trail’, ‘avia_breadcrumbs_trail_mod’, 50, 1);

    #1481556

    `function avia_breadcrumbs_trail_mod($trail)
    {
    if ( is_product() || is_product_category() ) {
    $trail[1] = ‘<a href=”https://shop.akhurst.com/&#8221; title=”Product Page” rel=””>Home</a>’;
    }
    return $trail;
    }
    add_filter(‘avia_breadcrumbs_trail’, ‘avia_breadcrumbs_trail_mod’, 50, 1);

    #1481567

    Hi,

    Thank you for opening another thread.

    We adjusted the filter a bit. Please try it again:

    function avia_breadcrumbs_trail_mod($trail)
    {
        if ( is_product() || is_product_category() ) {
            $trail[0] = '<a href="https://shop.akhurst.com/" title="Product Page" rel="">Home</a>';
        }
        return $trail;
    }
    add_filter('avia_breadcrumbs_trail', 'avia_breadcrumbs_trail_mod', 50, 1);

    Best regards,
    Ismael

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