Download

All XenForo Resources for only 35.00 $ Months.

Support

Support 24/7 via DM.

Payment

Paypal secure payment.

Refunds

Once you download any Premium files, refunds will not be issued..

Tutorials Grid layout for xfrm without addon

🕒 Thread author was active 3 hour(s) ago

Xenforo

Ice Admin
Staff member
Ice Staff
1 Level 1
85%
Joined
Jan 16, 2026
Messages
365
Highlights
2
Reaction score
72
Points
28
To implement a grid layout for the XenForo Resource Manager (XFRM) in 2026 without using an add-on, you must apply custom CSS to your extra.less template. This method uses CSS Flexbox or Grid to override the default list view.

Implementation Steps
  1. Locate Template: In your Admin Control Panel, go to Appearance > Styles > [Your Style] > Templates and open the extra.less template.
  2. Add Custom CSS: Paste the following code to transform the resource list into a responsive grid.
CSS:
@resource-grid-gap: 4px;
@resource-grid-width: 48%;
@resource-grid-thumb: 75px;

@media (min-width: @xf-responsiveMedium){
    @supports(display: grid){

        .block[data-type="resource"] .structItemContainer{
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(@resource-grid-width, 1fr));
            grid-gap: @resource-grid-gap;
            padding: @resource-grid-gap;
            background-color: @xf-contentAltBg;
        }
        .structItem--resource {
            background-color: @xf-contentBg;
            border-radius: 3px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            border-width: 0px;
            display: grid;
            grid-template-columns: @resource-grid-thumb 1fr;
            grid-template-areas: 'icon text' 'stats stats';

            .structItem-cell--icon.structItem-cell--iconExpanded{
                width: auto;
                grid-area: icon;
            }

           .structItem-title{
               white-space: normal;
          }

            .structItem-cell--main {
                grid-area: text;
                overflow: hidden;
            }

            .structItem-cell--resourceMeta {
                grid-area: stats;
                width: auto;
                display: flex;
                flex-wrap: wrap;
                align-items: center;
                justify-content: space-between;
            }

            .structItem-cell--iconExpanded .structItem-iconContainer .avatar {
                width: 100%;
                height: auto;
                font-size: 56px;
            }

            .structItem-secondaryIcon {
                display: none;
            }

            .structItem-metaItem--rating{
                flex: 1 0 100%;
            }

            .structItem-metaItem--downloads,
            .structItem-metaItem--lastUpdate{
                flex: 0 1 auto;
            }

            .ratingStarsRow--justified {
                border-bottom: 1px solid @xf-borderColorFaint;
                margin-bottom: 4px;
                padding-bottom: 4px;
            }
        }

    }
}

.structItem-metaItem--lastUpdate dt,.structItem-metaItem--downloads dt{
  font-size:0px; }
.structItem-metaItem--downloads dd{
  margin-left:18px; }
.structItem-metaItem--downloads dt:before ,.structItem-metaItem--lastUpdate dt:before {
    font-family: FontAwesome;
    font-size: 14px;
    position: absolute; }
.structItem-metaItem--downloads dt:before {
    margin-left: 0px;
   .m-faContent(@fa-var-download); }
.structItem-metaItem--lastUpdate dt:before {
  .m-faContent(@fa-var-clock);
  margin-left: -15px; }
 
Back
Top