About
is a widget that can be used to display desired posts with a small thumbnail style - (View). The thumbnail size of the posts in this widget will adjust to the height of the title content and other content - (View).
Specification
Configuration
Description
items
Use the code with below format to define items.
Simply adjust the content highlighted in red.
[
{ /* Post 1 */
title: "Post title",
url: "Post URL",
image: "Image URL",
top_info_title: "Top info content",
top_info_url: "Top info URL",
bottom_info_title: "Bottom info content",
bottom_info_url: "Bottom info URL",
},
{ /* Post 2 */
title: "-",
url: "-",
image: "-",
top_info_title: "-",
top_info_url: "-",
bottom_info_title: "-",
bottom_info_url: "-",
},
{ /* Post 3 */
title: "-",
url: "-",
image: "-",
top_info_title: "-",
top_info_url: "-",
bottom_info_title: "-",
bottom_info_url: "-",
},
]
Notes
- To disable top info content, set top_info_title to -.
- When top_info_title is defined and top_info_url set to -, the top info will display as plain text (not a link).
- Rules 1 and 2 above also apply to the bottom info content (bottom_info).
- The code above includes only 3 items; you can add more items as needed.
top_info
Choose the content to displayed at the top of the post title - (View).
| Value | Description |
|---|---|
| none | None |
| label | Post category |
| date | Post publication date |
| author | Author |
top_info_label
bottom_info
Choose the content to displayed at the bottom of the post title - (View).
| Value | Description |
|---|---|
| none | None |
| label | Post category |
| date | Post publication date |
| author | Author |
bottom_info_label
labels_count
Maximum number of labels to retrieve.
This configuration is needed if either top_info or bottom_info is set to label.
date_format
Date format.
This configuration is needed if either top_info or bottom_info is set to date -
More details
max_title_rows
Maximum number of post title lines.
Currently, this configuration only supports values of 1, 2, and 3.
thumbnail_content
Set the content of the thumbnail element.
| Value | Description |
|---|---|
| image | The system will display an image as the thumbnail if available. Otherwise, if a post does not contain an image, the system will display the content as the first character of the post title with a background skin according to the thumbnail_skin configuration - (See). |
| skin | Regardless of whether there is an image in the post or not, the system will always display the content as the first character of the post title with a background skin according to the thumbnail_skin configuration - (See). |
thumbnail_skin
item_box
footer_align
widget_title
widget_title_sub
Widget subtitle - (View)
- Value can be plain text or HTML
- Set to - to disable the subtitle
- The subtitle will still be displayed even if the widget_title configuration is disabled
widget_title_line
widget_title_align
widget_title_tag
HTML tag used for the widget title.
By default, the selected value is div.
For SEO purposes, it is recommended to use heading tags h2-h6 if the text
you enter in the widget_title configuration contains the target keyword.
margin_top
Set the distance of the widget from the top.
Value Definition
Value Definition
-
The value is a CSS Unit. Examples:
20px
40px
60px
- Although you can use other units such as em, pc, etc., it is recommended to use the px unit.
- When the configuration value is undefined (set to -), the distance applied will follow the default theme configuration (40px).
margin_bottom
Set the distance of the widget from the bottom.
The value definition is the same as the margin_top configuration.
conditional
Set the availability of the widget. With this configuration, you can enable the widget only on
certain page types, devices, or URLs.
More about this configuration can be read on the page:
Conditional Configuration.