-
Echo Knowledge Base
-
- Order Articles and Categories
- Main Page Width
- Main Page FAQs
- Set Image and Font Icons for Categories
-
- Article Page Width
- Article Layout
- Article Sidebars
- Article Page FAQs
- Embedding Google Documents in Articles
-
Add-ons
-
Access Manager
Print
Popular Articles Shortcode
Created OnJuly 17, 2023
Updated OnApril 12, 2024
By:Dave
5 out Of 5 Stars
1 rating
5 Stars | 100% | |
4 Stars | 0% | |
3 Stars | 0% | |
2 Stars | 0% | |
1 Stars | 0% |
Views135
The shortcode 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.
WordPress Shortcode
// Shortcode used inside the WordPress Editor
%crel_bracket_open%widg-popular-articles kb_id=1 title='Popular Articles' number_of_articles=5%crel_bracket_close%
Parameters:
- kb_id: (optional) ID of the knowledge base if Multiple KB add-on installed
- title: title above the Popular Articles.
- number_of_articles: how many articles to display.
Advanced Customization
You can use the following CSS to make adjustments to the shortcode. Code comments explain what each part does.
CSS
/* Change the title font size and color */
.widg-shortcode-article-container h4 {
font-size:18px !important;
color: #000;
}
/* Change the article font size */
.widg-shortcode-article-container li {
font-size:16px;
}
/* Change the article color */
.widg-shortcode-article-container li a {
color:#000;
}
/* Change article spacing from the left */
.widg-shortcode-article-container ul {
padding-left:5px;
}
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
Table of Contents