in

Customize Genesis Child Theme Breadcrumb and Entry Meta

Genesis Child Theme

You can customize the appearance of breadcrumb and entry meta on Genesis child theme by inserting code snippets below into your theme’s functions.php file.

Breadcrumb

//* Modify breadcrumb arguments.
add_filter( 'genesis_breadcrumb_args', 'sp_breadcrumb_args' );
function sp_breadcrumb_args( $args ) {
    //* $args['home'] = 'Home';
    //* $args['sep'] = ' / ';
    //* $args['list_sep'] = ', ';
    //* $args['prefix'] = '<div class="breadcrumb">';
    //* $args['suffix'] = '</div>';
    //* $args['heirarchial_attachments'] = true;
    //* $args['heirarchial_categories'] = true;
    //* $args['display'] = true;
    //* $args['labels']['prefix'] = 'You are here: ';
    //* $args['labels']['author'] = 'Archives for ';
    //* $args['labels']['category'] = 'Archives for ';
    //* $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: ';
return $args;
}

Remove //* in front of each argument to activate it.

Under Post Title

//* Customize the entry meta in the entry header
add_filter( 'genesis_post_info', 'sp_post_info_filter' );
function sp_post_info_filter($post_info) {
    $post_info = '[post_date] [post_edit]';
    return $post_info;
}

Under Post Content

//* Customize Entry Meta Filed Under and Tagged With
add_filter( 'genesis_post_meta', 'ig_entry_meta_footer' );
function ig_entry_meta_footer( $post_meta ) {
    $post_meta = '[post_categories before="List: "] [post_tags before="Label: "]';
    return $post_meta;
}

At above example, the default Filed Under and Tagged With are replaced with List and Label.

Footer

//* Change the footer text
add_filter('genesis_footer_creds_text', 'sp_footer_creds_filter');
function sp_footer_creds_filter( $creds ) {
    $creds = 'Copyright [footer_copyright] &middot; [footer_loginout]';
    return $creds;
}

What do you think?

Placeholder Image in WooCommerce

Change Default Product’s Placeholder Image in WooCommerce

Visual Composer

Visual Composer 6.5.0