How do I add the 'Article Title' to my Breadcrumbs, as it's not shown on Article Pages

2 コメント

  • Kay
    コメントアクション Permalink

    Hi Neil Woodfine!

    This is possible by adjusting your template.
    A developer could easily do this for you.

    On article_page.hbs make sure to add this line

    <div id="addToBreadcrumb"><li title="{{article.title}}"><a href="{{article.url}}">{{article.title}}</a></li></div>

    In script.js add this

    document.addEventListener("DOMContentLoaded", function(event) {

    var bcArticleTitle = document.querySelector("#addToBreadcrumb");
    document.querySelector('.breadcrumbs').appendChild(bcArticleTitle);

    });

     

    1
  • Neil Woodfine
    コメントアクション Permalink

    Thanks, you suggestion worked perfectly

    0

サインインしてコメントを残してください。

Powered by Zendesk