How to add breadcrumbs to WordPress website without plugin

Home » Programming » How to add breadcrumbs to WordPress website without plugin

How to add breadcrumbs to WordPress website without plugin

Breadcrumbs

It is also know as “breadcrumb trail” is a navigational aid that allows visitors to understand their current location in the context of a website.
There are a number of benefits to using breadcrumbs on your site:

  • Usability: It gives users an intuitive means of browsing through your site.
  • Easy to backtrack: If your site is made up of many layers then breadcrumbs can make navigating through them far easier.
  • Context: Breadcrumbs instantly give a vistor an idea of how the page they have landed on relates to the rest of the site.
  • SEO: Google will interpret your breadcrumbs and add them to the search engine results page.

For a WordPress beginner there are lot of plugins available for breadcrumbs and easy to integrate.

There is also an alternate way to show breadcrumbs on your website without any plugin. Add the below code in functions.php file of your current active WordPress theme and follow the steps accordingly.

1. functions.php

 

2. Add the code to display breadcrumbs on your pages / posts

 

3. Output

Search Breadcrumbs

 

Archive Breadcrumbs

Post detail Breadcrumbs

I’m a positive and enthusiastic web and mobile developer – and I relish a challenge.