-
AuthorPosts
-
January 8, 2014 at 12:18 pm #206777
Hi is it possible to add to breadcrumbs a full path to post type containing taxonomy hierarchy?
Thanks
Kind regards
MJanuary 8, 2014 at 12:22 pm #206780I used also a NavXT breadcrumbs plugin which works perfectly thanks to
if($breadcrumb) $additions .= bcn_display(true);
in functions-enfold.php but it has no classes displayed ;(January 8, 2014 at 6:47 pm #206959Hey!
Do you want to display the categories of your portfolio items? If yes insert this code into the enfold/functions.php file
add_action('after_setup_theme','avia_remove_portfolio_breadcrumb'); function avia_remove_portfolio_breadcrumb(){ remove_filter('avia_breadcrumbs_trail','avia_modify_breadcrumb'); }
– it will remove the portfolio page from the breadcrumb and will show the terms (including hierarchy with parent terms, etc.) instead.
Best regards,
PeterJanuary 8, 2014 at 7:18 pm #206983Hi Dude, Thanks.
No, it’s not a portfolio post type.I try to do it with different terms.
Any ideas?
- This reply was modified 10 years, 10 months ago by Mariusz.
January 8, 2014 at 7:21 pm #206985Maybe there’s a chance just to insert the following code into the grey stripe and swap existing breadcrumbs…
<div class="breadcrumbs"> <?php if(function_exists('bcn_display')) { bcn_display(); }?> </div>
January 9, 2014 at 7:07 am #207241Hey!
What type of header do you have? You can actually remove the default breadcrumb then add the navXT breadcrumb plugin. Edit header.php, find this code on line 185:
do_action('ava_after_main_menu'); ?>
Below, add this code:
<div class="navxt"> <?php if(function_exists('bcn_display')) { bcn_display(); }?> </div>
Add this on your Quick CSS or custom.css:
.navxt { position: absolute; right: 0; top: 73px; } .breadcrumb.breadcrumbs.avia-breadcrumbs { display: none; }
Remove browser cache then reload the page.
Regards,
IsmaelJanuary 9, 2014 at 9:57 am #207311Thank you Ismaeal
I use small fixed header, so your proposal of breadcrumb follows scrolling because is fixed as menu is.
Any ideas?
January 9, 2014 at 10:38 am #207319Hi!
You can try to wrap the breadcrumb into a div with the default breadcrumb classes.
if($breadcrumb) { $additions .= '<div class="breadcrumb breadcrumbs avia-breadcrumbs">'; $additions .= bcn_display(true); $additions .= '</div>'; }
Cheers!
PeterJanuary 9, 2014 at 10:44 am #207324Hi Peter, Thanks but where do you mean to insert the code?
class-breadcrumb.php ?Where exactly?
Kind regards
mJanuary 9, 2014 at 1:45 pm #207399Hey!
No, in functions-enfold.php – use it instead of the code you posted in your first post.
Regards,
PeterJanuary 9, 2014 at 2:08 pm #207415It works! thank you very much guys!
-
AuthorPosts
- The topic ‘Breadcrumbs with full path terms (taxonomy) for post type’ is closed to new replies.