Archived topic
How to make every GenerateBlocks Column size
26 replies · Started by Pintu on September 28, 2022
Can you re-share the link to the site in question?
Added in the private section.
Hi, Fernando any updates?
Is the first Article/featured article created with a separate Content Template? Can you add my-featured-image to the class list of the Container Block holding everything in the Featured image content template?
Added the class.
And yes the first Article/featured article was created with a separate Content Template which is "Apply to First Post."
Alright! Can you first remove the code I provided. And, can you also add my-article to the Container Block holding everything in the other Content template?
"Can you first remove the code I provided." Do you mean the CSS or the my-featured-image class?
The one here: https://generatepress.com/forums/topic/how-to-make-every-generateblocks-column-size/#post-2357166
I'll check why it's causing the issue and how to address it. I'm assuming I missed taking the Featured post into consideration.
I've removed the CSS and added the my-article class. Please check.
Thank you!
Try this instead:
.dynamic-content-template > .gb-container.my-article, .dynamic-content-template > .gb-container.my-article > .gb-inside-container {
height: 100%;
}
.dynamic-content-template > .gb-container.my-article > .gb-inside-container {
display: flex;
flex-direction: column;
}
.dynamic-content-template > .gb-container.my-article > .gb-inside-container > .gb-container {
flex-grow: 1;
}
.dynamic-content-template > .gb-container.my-article > .gb-inside-container > .gb-container > .gb-inside-container {
display: flex;
flex-direction: column;
height: 100%;
}
.dynamic-content-template > .gb-container.my-article > .gb-inside-container > .gb-container > .gb-inside-container > .gb-button-wrapper {
margin-top: auto;
}
Thanks, it is perfect now.
So, can I remove the my-featured-image class from the featured article container? Or, should I leave everything as it is.
Thanks once again for your help. :)
Yes, you can remove that. I was using it to test at first.
You're welcome Pintu!