How to Completely Remove Genesis Framework Breadcrumb

Breadcrumb is an element in a website to help users easily navigate through out your site. Genesis Framework allows developers and non-techy users to add or disable the breadcrumb in clicks. However, for developers and designers, there are times where you might want to completely remove the breadcrumb to avoid users from mess up with design or layout of your site.

In today’s tutorials, we’d like to share some cool snippets to complete remove the breadcrumb from your Genesis powered site.

1. Stop Breadcrumb from Being Displayed

<?php

//* Remove Genesis breadcrumb
remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' );</pre>
</div>

This snippet will remove the breadcrumb from the front-end of your site, nevertheless the whether you choose to enable or disable it from the settings page. If you wish to force hide the breadcrumb on any specific pages, this could be very useful. However, if you build a theme with no breadcrumb in mind, why don’t you remove the breadcrumb options from the settings page so you’ll not confuse the users?

2. Remove the Breadcrumb Options from the Settings page

While the code above can avoid breadcrumb from being displayed on your site, this code will remove the breadcrumb settings from the Genesis settings page.

<?php

//* Remove metaboxes in Genesis settings page
function afn_remove_metaboxes( $_genesis_theme_settings_pagehook ) {
	remove_meta_box( 'genesis-theme-settings-breadcrumb', $_genesis_theme_settings_pagehook, 'main' );
}

add_action( 'genesis_theme_settings_metaboxes', 'afn_remove_metaboxes' );

Since these snippets are theme-specific, I highly recommend to put them in your theme’s functions.php file. For best practice, please backup your file before making any changes. If you have any questions, feel free to drop your questions below.

Just a reminder, as we mentioned above, this tutorial only works on Genesis Framework powered site. If you never heard of it or use, we highly recommend check it out. We have used it for more than 5 years on our site and to build clients’ sites and really happy with it.

Get more stuff like this

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Get more stuff like this
in your inbox

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.