Skip Navigation

[Resolved] Equal height for Toolset Grid via Block Editor

This thread is resolved. Here is a description of the problem and solution.

Problem:
Display/Show Equal height for Toolset Grid via Block Editor

Solution:
To set the equal height for your grid item, you should try to add the CSS mentioned with the following link to your View's Custom CSS and JS box:

You can find the proposed solution in this case with the following reply:
=> https://toolset.com/forums/topic/equal-height-for-toolset-grid-via-block-editor/#post-1998999

Relevant Documentation:

This support ticket is created 3 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 15 replies, has 2 voices.

Last updated by nickK-7 3 years, 9 months ago.

Assisted by: Minesh.

Author
Posts
#1995101

Tell us what you are trying to do?

I searched for hours to get all grid items the same height. Now when there is one line text everything is fine, but when there are two lines text, the Grid is not equal as I see on my border I added. Also the button I added in the grid should always be on the same height. How to achieve this?

Is there any documentation that you are following?

I read your whole forum, but also Google without result.

Is there a similar example that we can see?

Not live yet, can send a screenshot in private if needed, but I think it's quite straightforward.

#1995675

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

I will require to know the exact structure of elements you added to your grid.

One of the similar issue I was able to fix by adding the custom CSS and here is that related solution:

Can you please try to add the following CSS code to your view's custom CSS section:

.tb-grid-column>.wpv-block-loop-item {
    height: 100%;
}
 
.tb-grid-column>.wpv-block-loop-item>.tb-container{
    height: calc(100% - 50px); 
/* this is 100% minus top and bottom padding */
}

Do you see it working?

#1997619

Hi Minesh,

Thanks for your reply. The blocks are now all equal heights, but the buttons are not on the same position. Due to differences in the content of each block, some buttons are higher or lower placed than others. It would be fantastic if we could align the buttons on one same height. How can I achieve this?

Best regards, Nick

#1997623

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hi Nick,

I need to know how exactly you added your button and how it looks like currently. If you could upload your site to some test server and send me link where I can see the issue would help me to review your current setup and then I will be able to guide you in the right direction.

#1997659

Hi Minesh,

I understand, however uploading to a test server is difficult at this moment.

Can I upload a screenshot in private?

#1997689

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I need frontend screenshot as well as your block structure screenshot as well as the how button rendered in page behind (page source) screenshot so I will be able to know what classes are added.

#1998251

Hello Minesh,

Thanks for opening private fields. Hereby the infomation requested.

Hope you can assist me on this.

Best regards,
Nick

#1998781

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I do not see any information with previous reply. I just see the text.

Can you please upload screenshots to any file sharing service and and send me the links to review.

#1998805

Hello Minesh,

Can you enable private fields please? I will send the link via the fields.

#1998895

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I have set the next reply to private which means only you and I have access to it.

#1998999

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Can you please try to add the following CSS code:

.tb-grid-column>.wpv-block-loop-item>.tb-container {
    height: calc(100% - 50px);
    display: flex;
    flex-direction: column;
}

.tb-button.aligncenter.button-bottom {
margin-top: auto;
}

Please add class button-bottom to your button block from right sidebar.

#1999035

Hello Minesh,

Almost perfect. Is it possible to align the buttons to the left? Then it's ok.

#1999061

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Well - you should check the button block and with button block on right sidebar you will see the "Button Alignment" option. I hope that helps and you will require to adjust the CSS accordingly if required.

#1999215

Hello Minesh,

Thanks for your help. I didn't notice that is was centered in the settings bar. I adjusted the setting and the css class accordingly and it's perfect now.

My issue is now resolved! Thanks!

Best regards,
Nick

#1999295

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Glad to help. You are welcome to mark this ticket resolved.