Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #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>' .  ' &sol; ' . $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.

    #385277

    Hey josiehaney!

    Thank you for using Enfold.

    The breadcrumb is currently disabled. Please enable it so that we can see the actual trail.

    Regards,
    Ismael

    #385285
    This reply has been marked as private.
    #386425

    Hi!

    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,
    Andy

    #386441
    This reply has been marked as private.
    #386446
    This reply has been marked as private.
    #386786

    Hey!

    Did you enable Header Title and Breadcrumbs option on Enfold > Header > Header Layout > Header Title and Breadcrumbs setting?

    Regards,
    Ismael

    #386800
    This reply has been marked as private.
    #388089

    Hello 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

    #388958

    Hey!

    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

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