Print

Popular Articles Widget

The widget displays a list of the most popular articles based on article views.

To enable the article view counter feature, please refer to the article here

Parameters:

  • Title: is the title of the Popular Articles widget.
  • KB ID – (optional) ID of the knowledge base if you have Multiple KBs add-on.
  • Number of Articles: how many articles to display.

The following CSS can be used to adjust the shortcode. The code comments explain what each part does.

CSS
/* Change the title font size and color */
#eckb-article-right-sidebar .widg-widget-article-container h4 {
       font-size:18px !important;
       color: #000;
}

/* Change the article font size */
#eckb-article-right-sidebar .widg-widget-article-container li {
       font-size:16px;
}
/* Change the article color */
#eckb-article-right-sidebar .widg-widget-article-container li a {
       color:#000;
}

/* Change article spacing from the left */
#eckb-article-right-sidebar .widg-widget-article-container ul {
  padding-left:5px;
}


See the right sidebar on this article for working example.

Was this article helpful?
5 out Of 5 Stars

1 rating

5 Stars 100%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
5
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.
Need help?
Table of Contents