How To Add Navigation Trail By using BreadCrumb NavXT Plugin

Breadcrumbs typically appear horizontally across the top of a web page, usually below title bars or headers. They provide links back to each previous page the user navigated through to get to the current page or—in hierarchical site structures—the parent pages of the current one.

Breadcrumbs provide a trail for the user to follow back to the starting or entry point. A greater-than sign (>) often serves as a hierarchy separator, although designers may use other glyphs (such as » or ›), as well as various graphical treatments.

Typical breadcrumbs look like this:

Home page > Section page > Subsection page or Home page >> Section page >> Subsection page

wordpress-breadcrumbs-without-a-plugin

Breadcrumbs are a very common feature to help users identify where they are on a website. For some reason, WordPress out of the box doesn’t have any built-in methods for dynamically creating this common design pattern. Fortunately, Mtekk and Hakre decided to take matters into their own hands and created the Breadcrumb NavXT WordPress plugin. This plugin creates a new PHP function to include in your posts and pages templates that generate a dynamic Breadcrumb.

You will find a slew of configuration options that allow you to control how your blog’s breadcrumbs will render. However, you might also notice that even once you installed the plugin, your blog still doesn’t have a breadcrumb! Don’t fret, this plugin requires you to add some code manually to your theme’s template files.

Inserting the Breadcrumb

The reason this plugin got the geek rating of Webmaster is specifically due to the fact that to leverage this plugin, you must edit your theme. Luckily, the process is fairly painless.

  1. Visit Appearance | Editor and select either Single Post or Page Template from the list of available theme files.
  2. Locate the top of your post’s content within the page’s HTML. This area is often located right above the code <?php while (have_posts() : the_post(); $count++; ?>.
  3. Insert the Basic Breadcrumb snippet of code at the top of the page.

Basic Breadcrumb

<div>
<?php
if(function_exists('bcn_display'))
{
bcn_display();
}
?>
</div>

Download and More Info

Disclosure: Some of the links in this article are affiliate links and we may earn a small commission if you make a purchase, which helps us to keep delivering quality content to you. Here is our disclosure policy.

Noor Mustafa Raza
Noor Mustafa Raza
I am a WordPress Developer and Designer, author @WPArena. I am providing Free WordPress consultation and can help you to install WordPress in a secure way to small businesses and bloggers.

LEAVE A REPLY

Please enter your comment!
Please enter your name here
Captcha verification failed!
CAPTCHA user score failed. Please contact us!

spot_img

Related Articles

Why WordPress Is The Best CMS? (And, Possible Alternatives)

Why WordPress is the best CMS? Having a website has become a necessity for both individuals and businesses. Content Management...
Read More
When optimizing the speed of your WordPress site, you might come across a performance metric known as Time to First...
Are you dealing with a broken WordPress site and don't know what to do? If your website is showing a...