Skip to content

Breadcrumb

Breadcrumb NavXT is one of the most popular plugins for generating breadcrumbs in WordPress websites. It allows users to easily add breadcrumb navigation without writing complex code.

You can download the plugin here: Breadcrumb NavXT


To add breadcrumbs in Plant3, use the following code:

add_action('plant_before_single_content', 'plant_add_bc');
function plant_add_bc() {
echo '<div class="breadcrumbs">';
if (function_exists('bcn_display')) {
bcn_display();
}
echo '</div>';
}
add_action('plant_page_meta', 'plant_add_bc');
function plant_add_bc() {
echo '<div class="breadcrumbs">';
if (function_exists('bcn_display')) {
bcn_display();
}
echo '</div>';
}

Note: Ensure that the Breadcrumb NavXT plugin is installed and activated on your website; otherwise, the code will not work.


If you want to add breadcrumbs in other locations within Plant3, refer to Plant3 Hooks


If you do not want to modify theme files directly, you can use the Functionality plugin to add custom functions easily. Download it here: Functionality


Adding breadcrumbs to your website improves user navigation and enhances SEO by providing a clear site structure. 🎯