You want Custom Breadcrumb to control what appears on your website. It's simple when you have read to this article the code below will help you do that.

Custom Breadcrumb
Custom Breadcrumb

Function.php file

Please open the function.php file, copy & pate the following code at the end of the file. Customize the way they appear to your liking.

//* Modify breadcrumb arguments.
add_filter( 'genesis_breadcrumb_args', 'genesis_child_breadcrumb_args' );
function genesis_child_breadcrumb_args( $args ) {
	$args('home') = 'Home';   // Can be changed by adding text in quotation marks ' '
	$args('sep') = ' / ';     // Can be changed by adding text in quotation marks ' '
	$args('list_sep') = ', '; // Can be changed by adding text in quotation marks ' '
	$args('prefix') = '';
	$args('heirarchial_attachments') = true; // Can be changed by adding text in quotation marks ' ' Genesis 1.5 and later
	$args('heirarchial_categories') = true;  // Can be changed by adding text in quotation marks ' ' Genesis 1.5 and later
	$args('display') = true;
	$args('labels')('prefix') = 'LongViet :';  // Can be changed by adding text in quotation marks ' '
	$args('labels')('author') = 'Archives for ';   // Can be changed by adding text in quotation marks ' '
	$args('labels')('category') = 'Archives for '; // Can be changed by adding text in quotation marks ' ' Genesis 1.6 and later
	$args('labels')('tag') = 'Archives for ';      // Can be changed by adding text in quotation marks ' '
	$args('labels')('date') = 'Archives for ';     // Can be changed by adding text in quotation marks ' '
	$args('labels')('search') = 'Search for ';     // Can be changed by adding text in quotation marks ' '
	$args('labels')('tax') = 'Archives for ';      // Can be changed by adding text in quotation marks ' '
	$args('labels')('post_type') = 'Archives for ';// Can be changed by adding text in quotation marks ' '
	$args('labels')('404') = 'Not found: ';        // Can be changed by adding text in quotation marks ' ' Genesis 1.5 and later
return $args;
}

Adding an icon to the top of Breadcrumb can replace the arbitrary Home version.

// Home breadcrumb icon.
add_filter ( 'genesis_home_crumb', 'genesis_child_breadcrumb_home_icon' ); 
function genesis_child_breadcrumb_home_icon( $crumb ) {
     $crumb = ' Home';
     return $crumb;
}

Locate Genesis Breadcrumb where you want, the code below will move to the bottom right next to the menu.

//* Reposition the breadcrumbs
remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' );
add_action( 'genesis_after_header', 'genesis_do_breadcrumbs' );

Epilogue

This is how you can customize your own Genesis Breadcrumb Genesis code.

READ  How to color video on iPhone without application

I hope you find this guide helpful. If so, consider sharing it with your audience!



->

Read more :

Leave a Reply

Your email address will not be published. Required fields are marked *