OCWP Sub-modules
Archives
The Archives sub-module lists the archive dates from your WordPress blog. Each date navigates you to the corresponding archive page in WordPress.
Here is how the sub-module looks like in the admin panel:
The following options are provided:
| Option Name | Option description |
|---|---|
| Status | Enabled/Disabled - the status of the sub-module. If you disable it, it will not be visible on the OpenCart front-end. |
| Name | The name used to refer to this OCWP sub-module. Used only for internal reference in the OpenCart admin panel. |
| Module Title | Language-specific title of the widget, which appears in the OpenCart front-end. |
| Limit Dates | The maximum number of archive dates which will be shown in the module. Set to 0 to show all dates from the archive. Default: 5 |
| Display the number of posts for each archive entry | Yes/No - whether the number of posts should be shown next to the archive date. |
Here is how the sub-module looks like in the OpenCart front:
Authors
The Authors sub-module lists the authors who have at least 1 post in your WordPress blog. Each link navigates you to the corresponding author page in WordPress.
Here is how the sub-module looks like in the admin panel:
The following options are provided:
| Option Name | Option description |
|---|---|
| Status | Enabled/Disabled - the status of the sub-module. If you disable it, it will not be visible on the OpenCart front-end. |
| Name | The name used to refer to this OCWP sub-module. Used only for internal reference in the OpenCart admin panel. |
| Module Title | Language-specific title of the widget, which appears in the OpenCart front-end. |
| Limit Authors | The maximum number of authors which will be shown in the module. Default: 5 |
| Display the number of posts for each archive entry | Yes/No - whether the number of posts should be shown next to the author name. |
Here is how the sub-module looks like in the OpenCart front:
Categories
The sub-module lists the categories in your WordPress blog. Each link navigates you to the corresponding category page in WordPress.
Here is how the sub-module looks like in the admin panel:
The following options are provided:
| Option Name | Option Description |
|---|---|
| Status | Enabled/Disabled - the status of the sub-module. If you disable it, it will not be visible on the OpenCart front-end. |
| Name | The name used to refer to this OCWP sub-module. Used only for internal reference in the OpenCart admin panel. |
| Module Title | Language-specific title of the widget, which appears in the OpenCart front-end. |
| Display number of posts in the categories | Yes/No - whether the number of posts should be shown next to the category name. |
| Display sub-categories | Yes/No - if set to Yes, show the sub-categories as well |
| Orientation | Vertical/Horizontal - Useful, since you might want to place the WordPress categories in different places in OpenCart - either in the top/bottom position or the left/right position. |
Style
Four kinds of styles to choose from:
- Navigation, using theme main color. This is a nested pop-up navigation menu. Here is how it looks and behaves for the vertical and horizontal orientation:
- Navigation, using theme secondary color. This is a nested pop-up navigation menu. Here is how it looks and behaves for the vertical and horizontal orientation:
- Category listing, using theme main color. No nesting here, all categories are displayed as a list. Here is how it looks and behaves for the vertical and horizontal orientation:
- Category listing, using theme secondary color. No nesting here, all categories are displayed as a list. Here is how it looks and behaves for the vertical and horizontal orientation:
Categories in mobile view
In the table above you notice that the categories will look different depending on the combination of Orientation and Style. Note that the above examples are a showcase only for the Desktop view.
For the Mobile view, the rules are a bit different.
First of all, if you assign the Categories to a Column Left or Column Right position, it will not get displayed whenever your users are browsing the website in mobile view. This is standard behavior for the standard OpenCart theme. If you are using a custom theme, the Column Left and Column Right might be visible.
If you assign the Categories to the Content Top or Content Bottom position, regardless of the value of the Orientation option, the categories will show up like this:
As you can see, depending on the style, the categories will be displayed as a listing only for the Mobile view. The Desktop view is explained in detail in the table above.
Posts
The Posts sub-module lists a number of posts in your WordPress blog. Each link navigates you to the corresponding post page in WordPress.
Here is how the sub-module looks like in the admin panel:
The following options are provided:
Status
Enabled/Disabled - the status of the sub-module. If you disable it, it will not be visible on the OpenCart front-end. Latest/Featured/Sticky - the type of posts which will be listed in the sub-module.
Latest will show the latest posts in a descending order by date of creation.
Featured will show only the posts which are marked with the featured custom field in WordPress (editable in the Post edit page in your WordPress admin panel).
Sticky will show the posts which are marked as Sticky in the Post edit page in your WordPress admin panel.
Module title
Language-specific title of the widget, which appears in the OpenCart front-end.
Name
The name used to refer to this OCWP sub-module. Used only for internal reference in the OpenCart admin panel.
Layout
Choose the number of columns in which the posts will be displayed. If you position the Posts module in Column Left or Column Right, use the layout 1 column(s). For Content Top or Content Bottom, you can use 2-4 columns.
Limit posts
The maximum number of posts which will be visible in the OpenCart front-end. Set to 0 to show all posts. Default value: 2
Limit post title
The maximum number of characters which will be shown for each post title. Set to 0 to show all post title characters.
Display post featured images
Yes/No - Whether to show the featured images when listing the posts on the front-end.
Image width
The width of the post images. Written as a whole number (integer).
Image height
The height of the post images. Written as a whole number (integer).
Display post authors
Yes/No - Whether to show the authors of the posts below the titles.
Display post excerpts
Yes/No - Whether to show the excerpts of the posts below the titles.
Display post date
Yes/No - Whether to show the date of publishing of the posts above the title.
OCWP Extension