bootstrap-breadcrumbs icon indicating copy to clipboard operation
bootstrap-breadcrumbs copied to clipboard

How to add additional html class for render_breadcrumbs?

Open agusmakmun opened this issue 5 years ago • 0 comments

by default, the {% render_breadcrumbs %} rendered the html breadcrumb like this below example:

<nav aria-label="breadcrumb">
  <ol class="breadcrumb">
    <li class="breadcrumb-item"><a href="/">Home</a></li>
    <li class="breadcrumb-item"><a href="/quizzes/">Quizzes</a></li>
    <li class="breadcrumb-item active" aria-current="page">Quiz Python Programming</li>
  </ol>
</nav>

but, for some case I need to add new the thml class inside that <ol class="breadcrumb">, e.g: <ol class="breadcrumb bg-light">.

Is there any support for it? e.g: {% render_breadcrumbs add_class:"bg-light foobar baz" %}

agusmakmun avatar Jan 04 '21 23:01 agusmakmun