Skip to content

Snippet: Move Breadcrumbs Trail

// Set breadcrumbs position to "custom" to remove from theme's default location
// NOTE: This can now be done in the Customizer as well.
add_filter( 'wpex_breadcrumbs_position', function() {
	return 'custom';
} );

// Place breadcrumbs above your page/post content / You can use any hook you want
add_action( 'wpex_hook_primary_before', function() {
	wpex_get_template_part( 'breadcrumbs' );
} );
All PHP snippets should be added via child theme's functions.php file or via a plugin. We recommend Code Snippets (100% Free) or WPCode (sponsored)
Back To Top