Archived topic
How to align grids
27 replies · Started by Ajay on January 16, 2023
I am getting an issue that my grid post is not align straight. The bottom is align properly but top and content title with small description is not align straight each others. Please help i am using bloc element.
Hi there,
where can i see the issue ?
on image and title and description. they are not align straight. but buttons are align straight
If i can see the site , then i can determine the cause of the issue.
If i can't see the site, then check to make sure all your featured images are the same size / aspect ratio.
my buttons are not aligned straight with each other. yes please check in a private box
Hi Ajay,
Can you provide the link to the site in question? We'll help with the CSS after we see the site.
You may use the Private Information field for this: https://docs.generatepress.com/article/using-the-premium-support-forum/#private-information
please look in private box
Can you try adding this through Appearance > Customize > Additional CSS?:
:is(.home, .archive, .page-id-332) .gb-grid-wrapper.gb-query-loop-wrapper .gb-query-loop-item > .gb-container .gb-inside-container {
height: 100%;
display: flex;
flex-direction: column;
}
:is(.home, .archive, .page-id-332) .gb-grid-wrapper.gb-query-loop-wrapper .gb-query-loop-item > .gb-container .gb-inside-container > *:nth-last-child(2) {
margin-top: auto;
}
it is working only a single page not in other pages which is homepage and categories pages. also the category text link placement should be littlebit down side after excerpt
I edited the code above. Can you try that instead?
yes working well but not on homepage
The structure of your homepage was different awhile ago. It must have been caching. I edited the code again on top.
Can you try that?
if i do some changes will style change? like some border radius and margen top bottum
i am facing also image size issue i dont know why please check the private box
If you don't change the structure, the code would still work even if you change the borders and spacing.
As for the image size issue, Google is suggesting to re-upload your images at a smaller size/dimension.
I believe there may be Image Optimization plugins that can assist with this. You can try if any of these helps: https://www.wpbeginner.com/plugins/best-wordpress-image-compression-plugins-compared/