-
AuthorPosts
-
January 12, 2014 at 7:08 pm #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 – 2014The 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
January 13, 2014 at 10:14 pm #209190Hi 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,
DevinJanuary 14, 2014 at 11:12 am #209378Both 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’
January 14, 2014 at 11:39 am #209386January 14, 2014 at 11:56 am #209403Now set to nothing – the problem still persists
January 14, 2014 at 12:14 pm #209412Hey!
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!
PeterJanuary 14, 2014 at 12:36 pm #209419Hi Dude – tried that as both a plugin and in the functions.php file – it appears to want to make no difference at all
January 14, 2014 at 9:34 pm #209701Hey!
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,
DevinJanuary 15, 2014 at 12:54 pm #210014This reply has been marked as private.January 15, 2014 at 1:05 pm #210018Hi!
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!
PeterJanuary 15, 2014 at 1:21 pm #210028That appears to have broken the breadcrumbs completely http://natureslens.co.uk/wildlife-nature-photography-workshops/birds-of-prey-2014-basic-workshops/
January 15, 2014 at 1:38 pm #210031Hi!
No, one (or maybe more) plugins cause the issue. If I deactivate all plugins the breadcrumb starts to work again.
Regards,
PeterJanuary 15, 2014 at 1:59 pm #210033I 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, 10 months ago by DavidMiles.
January 15, 2014 at 4:20 pm #210084This reply has been marked as private. -
AuthorPosts
- The topic ‘Double links to my home page in the Enfold BreadCrumbs’ is closed to new replies.