Site logo

[Resolved] How to make every GenerateBlocks Column size

Home Forums Support [Resolved] How to make every GenerateBlocks Column size

Home Forums Support How to make every GenerateBlocks Column size

Viewing 12 posts - 16 through 27 (of 27 total)
  • Author
    Posts
  • #2357209
    Fernando
    Customer Support

    Can you re-share the link to the site in question?

    #2357211
    Pintu

    Added in the private section.

    #2357223
    Pintu

    Hi, Fernando any updates?

    #2357234
    Fernando
    Customer Support

    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?

    #2357241
    Pintu

    Added the class.

    And yes the first Article/featured article was created with a separate Content Template which is “Apply to First Post.”

    #2357254
    Fernando
    Customer Support

    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?

    #2357256
    Pintu

    “Can you first remove the code I provided.” Do you mean the CSS or the my-featured-image class?

    #2357258
    Fernando
    Customer Support

    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.

    #2357259
    Pintu

    I’ve removed the CSS and added the my-article class. Please check.

    #2357263
    Fernando
    Customer Support

    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;
    }
    #2357271
    Pintu

    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. 🙂

    #2357275
    Fernando
    Customer Support

    Yes, you can remove that. I was using it to test at first.

    You’re welcome Pintu!

Viewing 12 posts - 16 through 27 (of 27 total)
  • You must be logged in to reply to this topic.