How to Set All Post Feed Containers to the Same Height in the Voxel WordPress Theme

In the Voxel WordPress Theme, you may have noticed that the containers sometimes have uneven heights when displaying posts or terms in a grid format using the Voxel Post Feed or Voxel Term Feed widgets.

This can make the layout look messy, especially when displaying different content types. Unfortunately, even setting 100% height on elements in the builder does not fix it. The issue arises from the Elementor page builder adding extra non-targetable div elements that interfere with the grid layout.

Fortunately, this is an easy fix! By applying a small snippet of custom CSS, you can ensure that all the containers in the Post Feed grid have the same height, creating a more polished and professional look.

In this article, we’ll walk through the steps to achieve this and explain how the CSS targets the specific elements causing the issue.

The Solution

Add the following CSS to force uniform height for all containers in the Voxel Post Feed grid (this targets both the post feed widget and the term feed widget):

.post-feed-grid .elementor {
height: 100%;
}
.post-feed-grid .ts-preview>.elementor>.elementor-element {
height: 100%;
}

How It Works

.post-feed-grid .elementor { height: 100%; }: Ensures all .elementor elements within the .post-feed-grid take up the full height of their containers.
.post-feed-grid .ts-preview > .elementor > .elementor-element { height: 100%; }: Targets specific Elementor elements inside .ts-preview and forces them to match the same height.

Considerations

Elementor Updates: If Elementor reduces the number of divs it generates in future updates, this CSS might stop working. Check the layout after updates.
Adding CSS: My recommendation is to use the free Fluent Snippets plugin. Or you can add the CSS via Appearance > Customize > Additional CSS or your theme’s stylesheet.

This solution is a quick fix to align your grid layout in the Voxel Post Feed and Term Feed widgets.

Bonus: How to Align a Container to the Bottom using Margin Top Auto

Often you want an element aligned to the bottom of the Post Feed Preview Card.

To achieve this we can add Margin Top Auto to the Container (we can not add this to the specific widget because Elementor adds extra inaccessible divs).

More Articles

The Voxel WordPress Theme is a dynamic content framework with the ability to provide user listings, user profiles, conversation feeds, bookings and membership, all with dynamic visibility and full design control. The Voxel WordPress Theme is developed by the team at 27 Collective, the same team that developed the MyListing directory theme. While many of […]
This guide outlines how to implement Rank Math SEO schema markup within the Voxel WordPress Theme using the free version of Rank Math, enhancing search engine understanding and visibility of your content.   Step 1: Generate Schema MarkupUse an online schema generator to create your schema markup structure. Step 2: Adjust Rank Math SettingsDisable the […]
rank math seo schema markup guide for the voxel theme

Support me

Coffee is my fuel

All guides are available for FREE.

If this saved you time, please support my work by checking out the recommended tools or buying me a coffee.