How to Add Breadcrumbs to WordPress (2026): With and Without a Plugin

To add breadcrumbs to WordPress, you have four solid ways — and three need no coding at all. Breadcrumbs are the small trail of links at the top of a page, usually Home > Blog > Category > Article, showing visitors exactly where they are on your site.

Most WordPress sites should have them: they help visitors move around, help Google understand your site structure, and when marked up correctly, replace the plain URL in search results with a readable path. This guide shows you how to add breadcrumbs to WordPress in 2026 with Rank Math, Yoast SEO, a dedicated plugin, or code using a GeneratePress hook — every step checked against the official documentation on 22 November 2026, and all four methods free.

In this guide

What Are WordPress Breadcrumbs?

A breadcrumb is a row of links that traces the path from your homepage to the page a visitor is currently reading. On a blog post, it typically reads Home > Blog > Category > Post Title. Each item except the last is a clickable link, so a reader can jump up one or more levels without touching the back button or the main menu. The trail mirrors the site hierarchy — homepage, section, category, page — and when you add breadcrumbs to WordPress, you are simply exposing that hierarchy as a row of links at the top of each page.

Visible breadcrumbs and breadcrumb structured data differ: the trail is what visitors see, while invisible JSON-LD tells Google what that trail is so it can appear in search results. The plugin methods in this guide add both at once — one more reason to use them rather than hand-coding only the visible part.

Why Breadcrumbs Matter for SEO and Visitors

Breadcrumbs help two audiences at once: the people reading your content and the search engine indexing it. That is the core reason to add breadcrumbs to WordPress rather than treating them as decoration.

They reduce bounce and dead ends. A reader who lands on a post from Google and finds it is not quite what they wanted can leave — or step up one level to the category archive. Breadcrumbs make the second choice easy; without them, the only way up is the main menu or the back button, and many visitors simply leave.

They add internal links on every page. When you add breadcrumbs to WordPress, every trail becomes a set of links from a post up to its category and homepage, spreading link equity and giving Google more paths to discover and crawl your pages. Deep pages with few incoming links gain a direct route from the homepage hierarchy.

They can improve how your pages look in search results. With breadcrumb structured data, Google can show the trail instead of the raw URL on desktop results — example.com › Blog › WordPress rather than a long address. Google stopped showing breadcrumbs in mobile results in early 2025, keeping only the domain there, but they still appear on desktop, and a cleaner result can earn more clicks.

They signal a clear site structure. Consistent breadcrumbs mean a hierarchy Google can understand. If you are working through your site’s foundations, our guide to adding schema markup to WordPress covers the other structured data worth having, and our sitemap guide explains how to make sure Google finds every page.

The only cost is a little extra markup on every page, and on a normal site the performance impact is negligible. If your site is slow, the cause is almost certainly elsewhere — our WordPress speed guide covers the fixes that actually move the numbers.

Before You Start: Pick Your Method

The right way to add breadcrumbs to WordPress depends on what you already have installed. If your site runs Rank Math or Yoast SEO, use that plugin — the feature is already in the free version, and it adds the structured data. If you use neither, a dedicated breadcrumbs plugin is the simplest route. Code is only worth it when you want full control and are comfortable editing theme files.

Method Cost Code needed Structured data included Best for
Rank Math breadcrumbs Free One snippet or shortcode Yes, BreadcrumbList JSON-LD Sites already running Rank Math
Yoast SEO breadcrumbs Free One snippet or theme support Yes, BreadcrumbList JSON-LD Sites already running Yoast SEO
Breadcrumb NavXT Free Optional theme call Yes, Schema.org BreadcrumbList Sites with no SEO plugin, or full control
Custom code + hook Free Yes, a small function No, unless you add it Developers who want zero extra plugins

Before you add breadcrumbs to WordPress, decide where the trail should appear: posts only, pages too, or site-wide. Most sites show it on posts and pages but not the homepage, where a trail pointing at itself is pointless. Also check whether your theme already prints breadcrumbs — two systems at once is the most common cause of duplicates. Finally, back up before touching theme files, and use a child theme so an update does not wipe out your work.

Method 1: Add Breadcrumbs to WordPress With Rank Math

Rank Math is the fastest way to add breadcrumbs to WordPress if it is already your SEO plugin — and this site runs on Rank Math, so this is the method we use ourselves. Breadcrumbs are included free, and the plugin adds the BreadcrumbList structured data automatically.

Step 1: Enable breadcrumbs in Rank Math

To add breadcrumbs to WordPress with Rank Math, go to Rank Math SEO → General Settings → Breadcrumbs and turn on the Enable breadcrumbs function toggle. The panel then reveals the options: separator character (a hyphen by default), homepage label (Home by default), whether to show the homepage link, and a trail prefix. Set them to match your design, then click Save Changes.

If you run a static page as your blog page, enable Show Blog Page in the same panel so it appears in the trail.

Step 2: Display the breadcrumbs on your site

Enabling the setting alone shows nothing — your theme has to print the trail. When you add breadcrumbs to WordPress with Rank Math you get three display options and need only one. The simplest is the shortcode: add a Shortcode block where you want the trail and enter .

The second option is the template function — add this line to single.php for posts or header.php for the whole site:

<?php if ( function_exists( 'rank_math_the_breadcrumbs' ) ) rank_math_the_breadcrumbs(); ?>

The function_exists check stops your site breaking if Rank Math is ever deactivated. To skip the homepage, wrap the call in ! is_home(), as shown in Rank Math’s own customization guide.

Step 3: Check the category shown in the trail

By default, Rank Math builds the trail from the post’s primary category — set it in the post editor when a post has several categories. To control which taxonomy appears, go to Rank Math SEO → Titles & Meta → Posts and set Primary Taxonomy to Categories.

Method 2: Add Breadcrumbs to WordPress With Yoast SEO

Yoast SEO also includes breadcrumbs free, so if Yoast is your SEO plugin, there is no reason to install anything else to add breadcrumbs to WordPress. Setup has two parts: a small snippet telling your theme where the trail goes, and a toggle in the plugin settings.

Step 1: Add the breadcrumb code to your theme

To add breadcrumbs to WordPress with Yoast, add this snippet to your child theme — at the end of header.php for a site-wide trail, or in single.php for posts only:

<?php
if ( function_exists( 'yoast_breadcrumb' ) ) {
    yoast_breadcrumb( '<p id="breadcrumbs">', '</p>' );
}
?>

As with Rank Math, the function_exists wrapper protects your site if Yoast is deactivated. Always edit a child theme — updates erase parent-theme edits. If you would rather not edit template files, add the Yoast SEO breadcrumbs block to any post or page instead.

Alternatively, a theme can declare add_theme_support( 'yoast-seo-breadcrumbs' ) in functions.php, and Yoast renders the trail where the theme chooses — see Yoast’s own breadcrumbs guide. Most site owners will use the snippet or the block instead.

Step 2: Enable breadcrumbs in Yoast

Go to SEO → Search Appearance, open the Breadcrumbs tab, and toggle Breadcrumbs settings to Enabled. That is all it takes to add breadcrumbs to WordPress with Yoast: the settings let you change the separator, homepage label, prefix, and archive text. Save, then visit a post — the trail should be visible at the top of the content.

Method 3: Add Breadcrumbs to WordPress With Breadcrumb NavXT

If you run no SEO plugin, or you want deeper customization than an SEO plugin offers, Breadcrumb NavXT is the established choice to add breadcrumbs to WordPress. It is free, from the WordPress.org directory, with 800,000+ active installations and a 4.6 out of 5 rating, at version 7.5.2 as of 22 November 2026. It generates Schema.org BreadcrumbList markup and gives you a settings screen dedicated entirely to the trail.

Step 1: Install and activate the plugin

Go to Plugins → Add New, search for Breadcrumb NavXT, install it, and activate it. A new Settings → Breadcrumb NavXT menu appears, with separate tabs for general settings, post types, and taxonomies — each with template fields for how each level of the trail is rendered.

Step 2: Display the trail

To add breadcrumbs to WordPress with Breadcrumb NavXT, pick one of its three display routes. The easiest is its block: add the Breadcrumb Trail block to a post, page, or template. The second is the widget, droppable into any widget area from Appearance → Widgets. The third is a theme call — add the plugin’s display function to your child theme’s template files.

Note one limitation before you commit: Breadcrumb NavXT has no shortcode, so if your workflow depends on dropping a shortcode into arbitrary pages, use the block or the widget instead. That is a deliberate design choice by the plugin author, not a bug.

Step 3: Customize the templates

Each level of the trail — homepage, post, page, category, tag, author, date archive — has its own template field for its HTML and text. Change the separator, shorten long post titles, hide the current page, or add a prefix, all without touching code. Save, then check a post, a category archive, and a page on the front end, since each uses a different template.

Method 4: Add Breadcrumbs to WordPress Without a Plugin

You can add breadcrumbs to WordPress with no plugin at all, using a small function hooked into your theme — the right choice for full control of the markup or a low plugin count, but also the method with the most ways to get it wrong. Note that a hand-coded trail adds no structured data by itself: for the search-result benefit, add the JSON-LD separately or use a plugin method instead.

Step 1: Write the breadcrumb function

Add this function to your child theme’s functions.php, or through the free Code Snippets plugin, which is safer because it survives theme changes. It builds a simple trail — Home, the post’s first category, then the post title — and skips the homepage:

function bh_custom_breadcrumbs() {
    if ( is_front_page() ) {
        return;
    }
    echo '<nav aria-label="Breadcrumb"><ol class="bh-crumbs">';
    echo '<li><a href="' . esc_url( home_url( '/' ) ) . '">Home</a></li>';
    if ( is_single() ) {
        $cats = get_the_category();
        if ( ! empty( $cats ) ) {
            echo '<li><a href="' . esc_url( get_category_link( $cats[0]->term_id ) ) . '">' . esc_html( $cats[0]->name ) . '</a></li>';
        }
        echo '<li aria-current="page">' . esc_html( get_the_title() ) . '</li>';
    } elseif ( is_category() ) {
        echo '<li aria-current="page">' . esc_html( single_cat_title( '', false ) ) . '</li>';
    }
    echo '</ol></nav>';
}

The esc_url and esc_html functions stop special characters in category names or titles from breaking your HTML — a habit worth keeping in every snippet you add to a site.

Step 2: Hook it into GeneratePress

A function in functions.php does nothing until something calls it. GeneratePress provides hooks — named points where your code can run — and the right one here is generate_after_header, which fires right after the closing header element. Add this line below the function:

add_action( 'generate_after_header', 'bh_custom_breadcrumbs' );

With GeneratePress Premium, skip the PHP: create a Hook Element under Appearance → Elements, choose the after_header hook, paste the code, tick Execute PHP, and set Display Rules to the whole site or posts only. The free theme has no Hook Elements, so the add_action snippet above is the free equivalent. Our GeneratePress vs Astra vs Kadence comparison explains how the three differ on hooks and customization.

Enabling breadcrumbs in a WordPress SEO plugin settings panel

Step 3: Style the trail

When you add breadcrumbs to WordPress with code, the result is unstyled — a plain bulleted list — so add a little CSS under Appearance → Customize → Additional CSS. The snippet below lays the items out horizontally, adds a separator, and dims the current page:

.bh-crumbs { list-style: none; display: flex; gap: 0.4rem; font-size: 0.85rem; margin: 0; padding: 0.5rem 0; }
.bh-crumbs li + li::before { content: "›"; margin-right: 0.4rem; color: #888; }
.bh-crumbs a { color: #0a2540; text-decoration: none; }
.bh-crumbs [aria-current="page"] { color: #666; }

How to Style Your Breadcrumbs

Whichever method you used to add breadcrumbs to WordPress, the default styling is plain — and that is fine, because breadcrumbs should be quiet, not decorative: small, low-contrast, and out of the way, just below the header and above the post title.

Keep it small and subtle. A font size around 0.8 to 0.9rem and muted grey links keep the trail from competing with your headline, and the current page — not a link — should be dimmer still.

Do not hide the trail on mobile. Breadcrumbs wrap onto two lines on narrow screens, and that is acceptable. Hiding them with CSS removes a navigation aid where screen space is tightest. If the trail is too long on mobile, shorten post titles in the breadcrumb settings instead.

Styling choice Recommended Avoid
Font size 0.8–0.9rem, muted colour Same size as body text
Separator One consistent character (› or /) Mixed separators across templates
Current page Plain text, dimmed, aria-current="page" A link to the page you are already on
Mobile Let it wrap to two lines Hiding the trail with CSS
Colour Theme link colour, subdued Bright or high-contrast colours

How to Test and Verify Your Breadcrumbs

Adding breadcrumbs is only half the job — confirm they work for visitors and for Google with these three checks after you add breadcrumbs to WordPress.

Check the front end on several page types. Open a single post, a category archive, a page, and your homepage: the trail should appear on the first three, not the homepage. Click every link and confirm each lands on the right page. On posts in multiple categories, the trail should show the primary category.

Run Google’s Rich Results Test. Paste a post URL into the test and look for the Breadcrumbs result. A valid result confirms Google can read your BreadcrumbList markup. If the test reports no markup, the visible trail exists but the structured data does not: usually the plugin’s breadcrumb feature is off, or another plugin is stripping the JSON-LD.

Watch Search Console. Its Breadcrumbs enhancement report shows how many pages carry valid markup and flags errors, such as missing fields or items that do not resolve. Check it a few days after you add breadcrumbs to WordPress, once Google has recrawled the pages. Fix errors promptly — they mean Google cannot use the markup at all.

A Google search result showing a breadcrumb path instead of a long URL

Troubleshooting: Breadcrumbs Not Showing and Other Fixes

Most problems when you add breadcrumbs to WordPress have one of four causes. Work through them in order before reinstalling anything.

Breadcrumbs are enabled but nothing appears. This is the most common report, and the cause is almost always the display step: enabling the setting alone changes nothing — you must also add the shortcode, block, or template snippet. Also clear your cache: a stale cached page predates your change, so purge it and check in a private browser window.

The trail shows the wrong category. Posts in several categories display the primary one. Open the post, find the primary category setting in the editor sidebar, and set it to the one you want. If your site assigns categories automatically or imports posts, audit the primaries in bulk.

Two breadcrumb trails appear on the same page. You are running two systems at once — usually the theme’s built-in breadcrumbs plus the plugin’s. Disable one: turn off breadcrumbs in the theme settings, or remove the plugin’s display code. Do not hide the duplicate with CSS; its structured data stays in the page and can confuse Google.

The Rich Results Test finds no markup. First confirm the visible trail exists — if it does not, fix the display step. If the trail is visible but the test finds nothing, another plugin may be removing the JSON-LD, or your theme may print a hand-coded trail with no structured data. Switch to a plugin method, or add a BreadcrumbList JSON-LD block mirroring the visible trail exactly.

BadilHost Verdict

To add breadcrumbs to WordPress, use the SEO plugin you already run: Rank Math or Yoast SEO both include breadcrumbs free, add the structured data automatically, and need only a toggle plus one snippet or shortcode. If you run neither, Breadcrumb NavXT is the best dedicated option — free, mature, and deeply customizable. Code the trail yourself only for full control of the markup, accepting that you must add the structured data separately. Whichever method you choose, place the trail on posts and pages but never the homepage, keep the styling quiet, and verify the result in Google’s Rich Results Test and Search Console.

Frequently Asked Questions

Do I need a plugin to add breadcrumbs to WordPress?

No. You can add breadcrumbs to WordPress without a plugin by writing a small function and hooking it into your theme, as shown in Method 4 of this guide. A plugin is still the easier route for most sites: Rank Math and Yoast SEO include breadcrumbs in their free versions, add the structured data for you, and give you a settings screen instead of code.

Will breadcrumbs help my SEO?

Yes, modestly. Breadcrumbs add internal links on every page, help Google understand your site hierarchy, and — when marked up with BreadcrumbList structured data — can replace the plain URL in desktop search results with a readable path. They are a supporting SEO improvement, not a ranking magic trick: they work best alongside clean categories, a sitemap, and good content.

Why are my breadcrumbs not showing?

The usual cause is a missing display step. In Rank Math and Yoast, enabling breadcrumbs in the settings does not display anything — you must also add the shortcode, block, or template snippet to your theme. Other common causes are a stale cache serving the old page, or the trail being added to a template file your theme does not use. Purge the cache and check in a private window first.

Can I add breadcrumbs to WordPress without code?

Yes. Rank Math’s shortcode and Yoast’s breadcrumbs block both add breadcrumbs to WordPress with no code at all. Breadcrumb NavXT also offers a block and a widget. You only need code if you choose the fully manual method or if your theme has no suitable place for a block or shortcode.

Should breadcrumbs appear on the homepage?

No. A breadcrumb trail on the homepage is a link to the page you are already viewing, which helps nobody. Rank Math and Yoast skip the homepage automatically when set up correctly. If a trail appears there, check for a stray shortcode or block on the homepage, or wrap your template call in ! is_front_page().

Do breadcrumbs work with GeneratePress?

Yes. GeneratePress has no built-in breadcrumbs, but it works well with all four methods in this guide. The code method uses its generate_after_header hook, and GeneratePress Premium’s Hook Elements can place a breadcrumb snippet at the same hook without editing PHP. Rank Math, Yoast, and Breadcrumb NavXT all work normally under GeneratePress.


Breadcrumb settings, functions, and plugin details in this article were verified against the official documentation (rankmath.com, kb.yoast.com, wordpress.org, docs.generatepress.com) and Google Search Central guidance on 22 November 2026. Plugin versions and settings change over time — confirm the current options on the official documentation before you make changes.

Leave a Comment