عبدالرحمن أبوالسعد

مصمم ومطور مواقع إنترنت

المدونة

How to create breadcrumbs without a plugin

How to create breadcrumbs without a plugin

  •  
  •  
  •  
  •  
  •  
  •  
  •  

 

Breadcrumbs are a navigational technique displaying all visited pages leading from the home page to the currently viewed page. All pages are linked for easy backwards navigation. Typically, this is placed near the top of a web page. So for example, if you look to the top of this page you will see the breadcrumb navigation menu that leads a path back to the homepage.

There are loads of WordPress plugins out there that can handle breadcrumbs for you, but they are not always the best option as they can often get things wrong and end up being more hassle than they are worth. The following code will have breadcrumbs working on your site in no time.

If you do have any issues or suggestions, feel free to contact me.

Simply paste the code below into your theme’s functions.php file:

 

Then to call the breadcrumbs onto your page (usually in the header file), simply use the following code:

 

Styling your breadcrumbs

Now the breadcrumbs need a bit of tidying up. Below is some basic CSS styles to get you going.

 

 

Best Regards