-
AuthorPosts
-
January 24, 2015 at 8:54 am #384806
Hi,
I’ve changed my breadcrumbs to appear as blog title set in enfold blog page settings and am pulling the category description (see attached screenshot) with below code:
add_filter('avia_breadcrumbs_trail', 'avia_change_breadcrumb_cat', 20, 1); function avia_change_breadcrumb_cat($trail) { if(is_category()) { foreach (get_the_category() as $category); $cat = $category->category_description; $newtrail = array(); $blog = avia_get_option('blogpage'); $newtrail[0] = '<a href="' . get_permalink( $blog ) . '" title="' . esc_attr( get_the_title( $blog ) ) . '">' . get_the_title( $blog ) . '</a>' . ' / ' . $cat; // $newtrail['trail_end'] = $trail['trail_end']; $trail = $newtrail; } return $trail; }
I also edited css
/*blog post title*/
.breadcrumb { left: 4%; } #top.single.single-post .title_container .main-title a { display: none; } .title_container .breadcrumb { font-size: 16px; }
I would like to have this same structure for category pages but can’t seem to get that figured out.
January 26, 2015 at 8:44 am #385277Hey josiehaney!
Thank you for using Enfold.
The breadcrumb is currently disabled. Please enable it so that we can see the actual trail.
Regards,
IsmaelJanuary 26, 2015 at 9:01 am #385285This reply has been marked as private.January 27, 2015 at 5:52 pm #386425Hi!
did you already try a plugin like this: https://wordpress.org/plugins/breadcrumb-navxt/ ?
I think with this it’s much easier to customize your breadcrumbs.Best regards,
AndyJanuary 27, 2015 at 6:02 pm #386441This reply has been marked as private.January 27, 2015 at 6:05 pm #386446This reply has been marked as private.January 28, 2015 at 7:50 am #386786Hey!
Did you enable Header Title and Breadcrumbs option on Enfold > Header > Header Layout > Header Title and Breadcrumbs setting?
Regards,
IsmaelJanuary 28, 2015 at 8:33 am #386800This reply has been marked as private.January 30, 2015 at 2:55 am #388089Hello there, i am trying to get the navxt plugin to work with enfold and woocommerce. The reply was marked private after you asked if the breadcrumbs was enabled with Enfold theme options. Does enfold need to be enabled? Also with woocommerce. Does breadcrumbs need to be enabled too? Is there any code I have to enter in wp-functions.php to get NavXT to work? thanks
February 1, 2015 at 8:10 am #388958Hey!
If you want the breadcrumbs to show on archive pages instead of the archive title, use this on functions.php:
add_filter('avf_which_archive_output','avf_change_which_archive', 10, 3); function avf_change_which_archive($output) { if(is_category()) { $output = avia_breadcrumbs(array('separator' => '/', 'richsnippet' => true)); } return $output; }
Add this on Quick CSS:
.archive .breadcrumb.breadcrumbs { display: none; } .main-title.entry-title .breadcrumb.breadcrumbs.avia-breadcrumbs { display: block; }
To clarify, if you’re on a specific archive page (please provide a link), the breadcrumb should render how?
Cheers!
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.