Close Menu
  • Home
  • Learn
  • Web Hosting
  • Website Optimization
  • Elementor
  • Tech Jobs
  • Consultations NEW
  • More
    • About
    • Contact
    • Artificial Intelligence
    • CDN
    • Deals & Discounts
    • eCommerce
    • Movies & TV Shows
    • MyListing
    • Small Business
    • Themes & Templates
    • Tools
      • Internet Speedtest
      • VPN
    • Voxel
    • VPN
    • Web Hosting Services
    • Web Security
    • WooCommerce
    • WordPress
Tags
Analytics Archive auctions wordpress theme Backups Business business directory ChatGPT city guide classified Code Editors cPanel Crocoblock Deals directory Discord Discounts dokan ecommerce education wordpress theme Featured FTP Generative AI Google Cloud Google DeepMind grocery multivendor learning management system LiteSpeed Cache lms marketplace Matomo multi-vendor Opera PHP Plugin Update responisve shopify theme Sale SEO shop SSH Trending Updates Web Hosting woocommerce wordpress World Backup Day
Facebook X (Twitter) YouTube
Binary Blackboard
  • Home
  • Learn
  • Web Hosting
    LiteSpeed Cache vs WP Rocket

    LiteSpeed Cache vs WP Rocket

    August 3, 2023
    Storage racks aligned in a computer server room.

    Shared Web Hosting: Is It the Right Choice for Your Website?

    June 10, 2023
    Memorial day seal with the word deal next to it

    Memorial Day Weekend Deals

    May 25, 2023
    Woman holding a laptop as she works on web hosting servers

    Crucial Things to Know When Choosing Web Hosting Services

    March 27, 2023
    This is the A2 Hosting logo. It says “A2 Hosting Our Speed Your Success.”

    Switching to cPanel’s Jupiter Theme

    March 27, 2023
  • Website Optimization
    Logo for Elementor

    Automatically Clear Elementor Cache and Regenerate CSS

    July 25, 2023
    Screenshot of a macOS shortcut

    Website Speedtest macOS Shortcuts

    June 24, 2023
    New method accelerates data retrieval in huge databases

    New method accelerates data retrieval in huge databases

    March 15, 2023
    LiteSpeed Cache plugin settings dashboard

    LiteSpeed Cache Settings for Voxel

    March 9, 2023
    Logo for Redis Cache

    Are You Using Redis Cache on Your Website?

    March 8, 2023
  • Elementor
    Logo for Elementor

    Automatically Clear Elementor Cache and Regenerate CSS

    July 25, 2023
    Elementor helpful tips

    Unlock the Full Potential of Elementor with These 10 Advanced Tips

    May 20, 2023
    Logo for Elementor

    Master the Art of Web Design with Elementor Pro

    May 20, 2023
    Elementor CSS Print Method Settings

    What Is CSS Print Method in the Elementor Settings? Which Should I Choose?

    May 18, 2023
    Widgets for the Elementor page builder

    Remove Unused Elementor Widgets

    January 15, 2023
  • Tech Jobs
  • Consultations NEW
  • More
    • About
    • Contact
    • Artificial Intelligence
    • CDN
    • Deals & Discounts
    • eCommerce
    • Movies & TV Shows
    • MyListing
    • Small Business
    • Themes & Templates
    • Tools
      • Internet Speedtest
      • VPN
    • Voxel
    • VPN
    • Web Hosting Services
    • Web Security
    • WooCommerce
    • WordPress
Binary Blackboard
Home»Voxel»Blog Post Featured Section for Voxel
Voxel

Blog Post Featured Section for Voxel

January 20, 20233 Mins Read330
Facebook Twitter Pinterest LinkedIn Email WhatsApp Reddit
Screenshot of Voxel Post Feed Featured Section

This post is for users of the Voxel framework. Check them out: www.getvoxel.io

Just remember that as Voxel adds more features, you may not need this. In the meantime, let’s have fun making the internet a little more beautiful.

Note: This custom CSS is to be used with the Voxel Post Feed Widget (27 Post Feed). As usual, I recommend adding the code to your Voxel Child Theme. Get the child theme here.

Step One:

I know at the moment it’s tricky to use a Voxel dynamic image as a background. So the container that contains the post title, category, etc. has to be set as Absolute in the Advanced settings. If the container is not visible after setting it to Absolute, you will have to set the z-index to higher than the image container. Or you can just download the preview card template I provided.

Preview card
zip
2.02 KB
Downloaded 240

Step Two:

  • Add the Voxel Post Feed widget (27 Post Feed) to the area you want to display it.
  • Set the Data source to “Filters”.
  • Choose whichever post type you like.
  • Set the number of posts to load to “4”.
  • Set the Preview card template to the preview card I provided, or you created.
Screenshot of Blog Post Featured Section for Voxel step one settings

Step Three:

  • Under the Layout section, set the number of columns to “4”.
  • Set the item gap to “0”. (The grid-gap will be added in the CSS code.)
Screenshot of Blog Post Featured Section for Voxel step two settings

Step Four:

  • Under the Post Filters section, Add a filter for “Order By”, and set it to “Latest”.
  • I added another filter and set the “Post Category” to “featured” (which is a category I created). So I could set which posts I want to be on the top featured post area. Of course, you would have to add the “featured” category to the posts you want to display here.
Screenshot of Blog Post Featured Section for Voxel step three settings

Step Five:

Add the custom CSS Class “custom-grid” to the Post Feed widget under the advanced tab.

Screenshot of Blog Post Featured Section for Voxel step five settings

Step Six:

Add the following code to your Child Theme.

				
					/* ***** Code for 27 Post Feed */
.custom-grid .post-feed-grid {
  --cust-grid-gap: 4px;
  --cust-post-feed-height: 400px;
}

.custom-grid .post-feed-grid {
  grid-gap: var(--cust-grid-gap) !important;
  grid-template-areas:
    "post1 post2 post2"
    "post1 post3 post4" !important;
  grid-template-columns: 55% 1fr 1fr !important;
  grid-template-rows: 5fr 5fr !important;
}

.custom-grid .post-feed-grid > div:nth-child(1) {
  grid-area: post1;
}
.custom-grid .post-feed-grid > div:nth-child(2) {
  grid-area: post2;
}
.custom-grid .post-feed-grid > div:nth-child(3) {
  grid-area: post3;
}
.custom-grid .post-feed-grid > div:nth-child(4) {
  grid-area: post4;
}

.custom-grid .post-feed-grid > div:nth-child(1) img {
  height: calc(var(--cust-post-feed-height) + var(--cust-grid-gap));
}
.custom-grid .post-feed-grid > div:nth-child(2) img,
.custom-grid .post-feed-grid > div:nth-child(3) img,
.custom-grid .post-feed-grid > div:nth-child(4) img
{
  height: calc(var(--cust-post-feed-height) / 2);
}


@media (max-width: 940px) {
  .custom-grid .post-feed-grid {
    grid-template-areas:
      "post1 post1"
      "post2 post2"
      "post3 post4" !important;
      grid-template-columns: 1fr 1fr !important;
  }
  .custom-grid .post-feed-grid > div img {
    height: calc(100vh / 5 ) !important;
  }
}
				
			

Below is the minified version

				
					.custom-grid .post-feed-grid{--cust-grid-gap:4px;--cust-post-feed-height:400px;grid-gap:var(--cust-grid-gap)!important;grid-template-areas:"post1 post2 post2" "post1 post3 post4"!important;grid-template-columns:55% 1fr 1fr!important;grid-template-rows:5fr 5fr!important}.custom-grid .post-feed-grid>div:first-child{grid-area:post1}.custom-grid .post-feed-grid>div:nth-child(2){grid-area:post2}.custom-grid .post-feed-grid>div:nth-child(3){grid-area:post3}.custom-grid .post-feed-grid>div:nth-child(4){grid-area:post4}.custom-grid .post-feed-grid>div:first-child img{height:calc(var(--cust-post-feed-height) + var(--cust-grid-gap))}.custom-grid .post-feed-grid>div:nth-child(2) img,.custom-grid .post-feed-grid>div:nth-child(3) img,.custom-grid .post-feed-grid>div:nth-child(4) img{height:calc(var(--cust-post-feed-height)/ 2)}@media (max-width:940px){.custom-grid .post-feed-grid{grid-template-areas:"post1 post1" "post2 post2" "post3 post4"!important;grid-template-columns:1fr 1fr!important}.custom-grid .post-feed-grid>div img{height:calc(100vh / 5)!important}}
				
			
Table Of Content

Table of Content

Share. Facebook Twitter Pinterest LinkedIn Email WhatsApp Reddit

Related Posts

Screenshot of Dynamic Business Hours Highlighting Based on Current Day - In Voxel

Dynamic Business Hours Highlighting Based on Current Day – In Voxel

Wordpress 6.3 Lionel

WordPress Update 6.3 “Lionel” is out

Elementor helpful tips

Unlock the Full Potential of Elementor with These 10 Advanced Tips

Leave A Reply Cancel Reply

You must be logged in to post a comment.

Menu
  • About
  • Contact
  • Developer Tools
  • Deals & Discounts
  • Sitemap
  • Privacy Policy
  • Terms of Service
Tags
Analytics Archive auctions wordpress theme Backups Business business directory ChatGPT city guide classified Code Editors cPanel Crocoblock Deals directory Discord Discounts dokan ecommerce education wordpress theme Featured FTP Generative AI Google Cloud Google DeepMind grocery multivendor learning management system LiteSpeed Cache lms marketplace Matomo multi-vendor Opera PHP Plugin Update responisve shopify theme Sale SEO shop SSH Trending Updates Web Hosting woocommerce wordpress World Backup Day
Facebook X (Twitter) YouTube
  • Privacy Policy
  • Terms of Service
Copyright © 2025 - binaryBlackboard.

Type above and press Enter to search. Press Esc to cancel.