I want to show all my articles on my category pages


  • Ifra Saqlain
    Community Moderator
    Most Engaged Community Member - 2022
    Most Engaged Community Member of The Year - 2021

    Hey Cris,

    Follow the steps below:

    1). Copy and paste it at the bottom of script.js file.

     $.getJSON('/api/v2/help_center/articles', function (data) {
          var articleList = '';
          $.each(data.articles, function (idx, itm) {
            articleList += '<li class="blocks-item" id="{{id}}">';
            articleList += '<a href="' + itm.html_url + '" id="' + itm.id + '" class="blocks-item-link">' 
            + itm.title + '</a>';
            articleList += '</li>';
          var articlesLength = $('ul.articles-list > li').length;
          if (articlesLength) {



    2). Copy and paste it on the category page, remove yours and paste these all.

    <div class="container-divider"></div>
    <div class="container">
      <nav class="sub-nav">
        <div class="search-container">
          <svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" focusable="false" viewBox="0 0 12 12" class="search-icon">
            <circle cx="4.5" cy="4.5" r="4" fill="none" stroke="currentColor"/>
            <path stroke="currentColor" stroke-linecap="round" d="M11 11L7.5 7.5"/>
          {{search scoped=settings.scoped_kb_search submit=false}}

      <div class="category-container" >
        <div class="category-content">
          <header class="page-header">
    <!--         <h1>{{category.name}}</h1> -->
            {{#if category.description}}
              <p class="page-header-description">{{category.description}}</p>

          <div id="main-content" class="section-tree" >
            {{#each sections}}
             <h2 style="" class="section-tree-title">
            <section style=" padding: 20px 0px 20px 20px;">
    <ul class="articles-list blocks-lis">
              <i class="category-empty">
                <a href="{{category.url}}">{{t 'empty'}}</a>


    If any issue let me know :)



    Team Diziana



Please sign in to leave a comment.

Powered by Zendesk