Breadcrumb.js latest version 1.1.0
<script src="https://cdn.jsdelivr.net/gh/tobiasroeder/breadcrumb.js@1.1.0/js/breadcrumb.min.js"></script><div class="breadcrumb-path"></div>// only the 'elmt' parameter is necessary to work
breadcrumb({
elmt: '.breadcrumb-path',
});
// full
breadcrumb({
elmt: '.breadcrumb-path',
home: '🏠', // 🏠
capitalFirstLetter: true,
hyphen: ' > ', // >
lastItem: 'title',
info: true
});| Parameter | Type | Default | Description |
|---|---|---|---|
| elmt | string | Set the element/s where the breadcrumb has to be written. | |
| home | string | 'Home' | Replace the default value |
| capitalFirstLetter | boolean | false | If true the first letter become uppercase. |
| hyphen | string | ' / ' | Replace the default value |
| lastItem | boolean/string | false | Replace last item e.g. the h1 or the title (#1) |
| info | boolean | false | Displays an information in the console |