In this article we will try to make breadcrumbs in wordpress, before that did you know what is meant by breadcrumbs?
If you don’t know, please read the following explanation from the wikipedia website.
If you are a wordpress theme developer / theme maker, you should definitely think about including breadcrumbs in the templates you create. Since this is an important element in a website, it is also very important for SEO.
Breadcrumbs usually appear horizontally at the top of a web page, often below the title bar or header. Which is useful for making it easier for website visitors in terms of navigation when a website has a lot of sub menu depth. With the breadcrumb the user will not be confused about what menu he has opened before he arrives at a page, so he can easily return to previous pages.
Breadcrumbs use a single line of text to show a page’s location in the site hierarchy. While secondary, this navigation technique is beneficial to users – Jacob Nielsen.
Examples of Breadcrumb Forms:
Home page > Section page > Subsection page > Sub Subsection page
Home page : Section page : Subsection page : Sub Subsection page
Please adjust the shape of the separator according to your website design, but generally the separator used is in the form of an arrow >
The apple.com website is very famous for its breadcrumbs, often used as a reference
Breadcrumbs in WordPress
Well this time we will try to make breadcrumbs in wordpress, this function is very good and easy to edit.
First create a breadcrumb() function in the functions.php file in your template folder. The contents are as follows: