XF 2.0 widget grid position

Currently reading:
XF 2.0 widget grid position

maszd

cXF Pack C
cXF Pack B
cXF Donor
May 20, 2015
119
46
Hi @BassMan

how to make widget position on forum list like this one:

2018-04-08_055916.png

iam try to make a html widget and insert few widget inside this html like this one:
2018-04-08_060424.png

but its show like this one:
2018-04-08_060529.png

you can see this site for example : TechPowerUp Forums

thanks.
 

Attachments

    You don't have permission to view attachments. Attachments are hidden.

BassMan

Staff member
Administrator
May 18, 2015
1,195
772
www.customizexf.com
You can try it like this:

HTML widget template:
HTML:
<div class="grid-main">
    <div class="grid">
        <xf:widget key="forum_overview_new_posts" />
    </div>
    <div class="grid">
        <xf:widget key="forum_overview_forum_statistics" />
    </div>
</div>
Add to extra.less:
CSS:
.grid-main {
    display: flex;
}
.grid {
    display: flex;
    flex-direction: column;
    min-width: 250px;
    flex: 1 1 250px;
}
.grid:first-of-type {
    margin-right: 2%;
}
.grid .block, .grid .block-container {
    height: 100%;
}
@media (max-width: @xf-responsiveMedium)
{
    .grid-main {
        display: inherit;
    }
    .grid:first-of-type {
        margin-right: inherit;
    }
}
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Welcome to customizeXF

We are running default XenForo style customized by cXF
Registration is free!

Search forums

Similar threads

Sticky sidebar

You'd like to have sticky sidebar on your forum? Click below.

Top