Breadcrumb Filter Not Working

Community Forums Forums Design Tips and Tricks Breadcrumb Filter Not Working

This topic is: not resolved

Tagged: 

This topic contains 1 reply, has 2 voices, and was last updated by  braddalton 6 months, 2 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #87995

    bazil
    Member
    Post count: 1

    I am using the Genesis sample theme.

    In the genesis theme settings I have breadcrumbs enabled on ‘posts’.

    I have included the following in my functions.php:

    add_filter( ‘genesis_breadcrumb_args’, ‘sp_breadcrumb_args’ );
    function sp_breadcrumb_args( $args ) {
    $args['home'] = ‘Home’;
    $args['sep'] = ‘ / ‘;
    $args['list_sep'] = ‘, ‘; // Genesis 1.5 and later
    $args['prefix'] = ‘<div class=”breadcrumb”>’;
    $args['suffix'] = ‘</div>’;
    $args['heirarchial_attachments'] = true; // Genesis 1.5 and later
    $args['heirarchial_categories'] = true; // Genesis 1.5 and later
    $args['display'] = true;
    $args['labels']['prefix'] = ‘You are here: ‘;
    $args['labels']['author'] = ‘Archives for ‘;
    $args['labels']['category'] = ‘Archives for ‘; // Genesis 1.6 and later
    $args['labels']['tag'] = ‘Archives for ‘;
    $args['labels']['date'] = ‘Archives for ‘;
    $args['labels']['search'] = ‘Search for ‘;
    $args['labels']['tax'] = ‘Archives for ‘;
    $args['labels']['post_type'] = ‘Archives for ‘;
    $args['labels']['404'] = ‘Not found: ‘; // Genesis 1.5 and later
    return $args;
    }

    But this code is not affecting the breadcrumb on the posts page. Eg there is no “you are here”, the separator is “>>” not “/”.

    When I change any of the labels it does not have an affect.

    If this an issue with the filter? What do I need to do to make changes to the breadcrumbs?

    #88359

    braddalton
    Participant
    Post count: 9194

    How does it display on single posts?


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.