Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #208691

    If you look at this page http://natureslens.co.uk/wildlife-nature-photography-workshops/birds-of-prey-2014-basic-workshops/

    The breadcrumb reads
    You are here: Home / Wildlife & Nature Photography Workshops / Basic Birds of Prey Nature Photography Workshops – 2014

    The Home & Wildlife & Nature Photography Workshops actually point back to the root of the site (or the homepage

    How do I remove the Wildlife & Nature Photography Workshops element of that – so that it just reads

    You are here: Home / Basic Birds of Prey Nature Photography Workshops – 2014

    The Wildlife & Nature Photography Workshops element is prevalent across the whole site – so if we can get rid of it here it will save me a massive headache

    #209190

    Hi DavidMiles!

    What do you have set in both the Theme Options for the home page and under the WordPress Settings>Reading for the home/blog page?

    Best regards,
    Devin

    #209378

    Both are set to the home page – which is the one with the ‘Wildlife & Nature Photography Workshops’ title – even when I rename it to be ‘home’, I end up with ‘Home / Home / Basic Birds of Prey Nature Photography Workshops – 2014’

    #209386

    Hey!

    Please don’t specify a Frontpage on Settings > Reading panel.

    Cheers!
    Ismael

    #209403

    Now set to nothing – the problem still persists

    #209412

    Hey!

    Insert following code into the functions.php file to remove the link from the breadcrumb

    
    if(!function_exists('avia_modify_blog_breadcrumb'))
    {
        function avia_modify_blog_breadcrumb($trail)
        {
    
            foreach($trail as $key => $data)
            {
                    $search = 'Wildlife & Nature Photography Workshops';
                    if(strpos($data, $search) !== false)
                    {
                            unset($trail[$key]);
                    }
            }
            return $trail;
        }
    
        add_filter('avia_breadcrumbs_trail','avia_modify_blog_breadcrumb');
    }
    

    Cheers!
    Peter

    #209419

    Hi Dude – tried that as both a plugin and in the functions.php file – it appears to want to make no difference at all

    #209701

    Hey!

    When you say you set the home page to nothing, do you mean you set it to “Your latest posts” or just unset the front page? Try both setting that to Your Latest Posts with the home page and blog set in the theme settings and the opposite setting the home page and blog from WordPress and not set at all in the theme options.

    Best regards,
    Devin

    #210014
    This reply has been marked as private.
    #210018

    Hi!

    I updated the code a bit and it works now

    
    if(!function_exists('avia_remove_home_breadcrumb'))
    {
        function avia_remove_home_breadcrumb($trail)
        {
            foreach($trail as $key => $data)
            {
                    $search = 'amp; Nature Photography Workshops';
                    if(strpos($data, $search) !== false)
                    {
                            unset($trail[$key]);
                    }
            }
            return $trail;
        }
    
        add_filter('avia_breadcrumbs_trail','avia_remove_home_breadcrumb', 15, 1);
    }
    

    Cheers!
    Peter

    #210028
    #210031

    Hi!

    No, one (or maybe more) plugins cause the issue. If I deactivate all plugins the breadcrumb starts to work again.

    Regards,
    Peter

    #210033

    I took your code – and pasted it into the Enfold Breadcrumb Fix plugin – if you disable that, the BreadCrumbs start to work again, I agree, the only thing in there is your code from above

    • This reply was modified 10 years, 11 months ago by DavidMiles.
    #210084
    This reply has been marked as private.
Viewing 14 posts - 1 through 14 (of 14 total)
  • The topic ‘Double links to my home page in the Enfold BreadCrumbs’ is closed to new replies.