How to Create a featured block for category page?
Template Shortcode allows you to show a featured block on the category page. For example this page.

To create a featured block for the category page, follow the steps below:
What you set in these steps is the featured block for every category. Any one category can use its own instead: the Top Section tab of its Foxiz Category Settings box has a Template Shortcode field of its own, and that one wins. Left empty, the category follows the one you set here. So set the template for all categories first, then give its own template only to a category that should look different, as One category with its own template shows.
-
Navigate to Dashboard > Ruby Templates > Add New Template.
-
Add the title of the page, for example Category Template.
-
Click on the “Edit With Elementor” button to switch to the builder.

-
Elementor opens with its panel on the left.

-
Click the + button in the middle of the page to add a container, then drag blocks from the panel into it.
To build a layout like the picture above, one large post on the left and two on the right:
- Open the container's Layout tab and set Direction to Row - horizontal.
- On the left, drop Foxiz - Highlight Overlay, the large post. Set Slider to Enable if you want it to rotate through several posts, as the dots in the picture show.
- On the right, drop Foxiz - Overlay, set Number of Posts to 2 and Columns on Desktop to 1 Column, so the two posts stack.
- In both blocks, you will set Category Filter to Dynamic Query in step 7, so each category features its own posts.


Foxiz's blocks are grouped into six categories in the Elementor panel: Foxiz - Flex, Foxiz - Standard, Foxiz - Element, Foxiz Header, Foxiz Podcast and Foxiz Single. A featured area is built from the post listing blocks in the first two.
-
Click on the Content area to open the panel.
That means the listing block itself, on the canvas. Clicking it opens its settings in the left hand panel, where the Content tab is the first of the three.
-
Select the Content tab, then find the Category Filter option then select "Dynamic Query".
Category Filter is in the block's Query Settings section and its default is - All -. Dynamic Query is the entry directly below it, above the list of category names, so it is easy to scroll past.
That entry is added to the dropdown only while you are editing a Ruby Template, which is why the same block dropped on an ordinary Elementor page offers category names and nothing else.
On a category page the theme swaps Dynamic Query for the category being viewed, so one template covers all of them. On any other page, and in the Elementor editor, it is cleared instead and the block lists posts from everywhere: the editor cannot show you the filtered result, and the front end is where you check it.
-
After you create a Category Template, you can copy the shortcode.

It is in the Template Shortcode box in the right hand sidebar of the editor, and in the Template Shortcode column of Ruby Templates > All Templates. It reads
[Ruby_E_Template id="1"], where the number is this template's post ID. -
Navigate to Foxiz > Theme Options > Category, open the Top Template Builder section, and paste the shortcode into Template Shortcode.
![Theme Options with Category highlighted in the section list, beside the Top Template Builder group: Template Shortcode holding [Ruby_E_Template id="3081"] and, below it, Display Conditional on Show on the first page, both outlined in orange.](/docs/assets/images/category-top-template@2x-b69cd65c5caa1959acdca5428e6a503a.png)
Save your changes once the shortcode is in.
The template is printed after the category header and above the post listing, which is what makes it the featured area of the page. It shows on a category with no posts too, with the theme's empty message below it.
Display Conditional appears under the shortcode once the field has something in it, and its default is Show on the first page. Left there, your featured block is on the first screen of the category and gone from page 2 onward; Show on all pages keeps it everywhere.
One category with its own template
A category that should look different gets its own template, which wins over the one in Theme Options:
-
Navigate to Dashboard > Posts > Categories.
-
Hover the category you want to change, then click its Edit link.
-
In the Foxiz Category Settings box, open the Top Section tab. Under its Top Featured Section heading, paste the shortcode into the Template Shortcode field.
Below it, Display Condition starts on - Default -, which follows Display Conditional in Theme Options. Leave it there for most categories; pick Show in the first page or Show in all pages only when this category should differ.
![The Foxiz Category Settings box on the Business category, with the Top Section tab selected and outlined in orange, and [Ruby_E_Template id="3081"] pasted into its Template Shortcode field, also outlined.](/docs/assets/images/category-settings-top-section@2x-d77d8bc607afec5c376b9dfb1eda463d.png)
-
Click Update to save.
Clear the field again, and the category goes back to the template set in Theme Options.
A heading that names the category
A dynamic template can carry a heading that changes with the category, such as Top Fashion News on Fashion and Top Technology News on Technology:
-
Open the template with Edit with Elementor, and click a Foxiz - Heading block.
-
Type your heading in its Heading field, with
{category}where the category name should go: Top{category}News.

The same block accepts three more tags, all replaced with the name of whatever archive it is displayed on: {archive}, {tag} and {taxonomy}. On a category page {archive} and {category} give the same result; the template in the picture above uses {archive}. How to Create Dynamic Title Heading Blocks has more.
Did this answer your question?