[Support request] help in query loops

Home Forums Support [Support request] help in query loops

Home Forums Support help in query loops

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2325333
    eran

    Hi,
    how can i make the buttons stick to the bottom right?
    Plus, how can i make the author name in blog page same height as the button?

    #2325414
    David
    Staff
    Customer Support

    Hi there,

    add this CSS to your site:

    .align-bottom > .gb-inside-container {
        height: 100%;
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    .align-bottom > .gb-inside-container > :last-child {
        margin-top: auto;
    }

    Then edit your Query Loop, select the Container Block ( Post template ) and in Advanced > Additional CSS Class(es) add: align-bottom

    you may need to add your Date and Author meta headlines in there own container to keep them inline.

    #2325643
    eran

    It worked but now in my blog the headlines not the same height

    #2326036
    David
    Staff
    Customer Support

    Your blog cards are using a different design and will require a different CSS rule to treat them.
    Can you remove the align-bottom class from your blog content template ?

    #2326425
    eran

    Done.
    Is it better to make the blog cards from query loops?

    #2326543
    Ying
    Staff
    Customer Support

    Try adding blog-card class to the very outside container of your content template.

    Then add this CSS:

    .gb-container.blog-card > .gb-inside-container {
        display: flex;
        flex-direction: column;
    }
    .gb-container.blog-card > .gb-inside-container > *:last-child {
        flex: 1;
    }
    .gb-container.blog-card > .gb-inside-container > .gb-container > .gb-inside-container {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    .gb-container.blog-card > .gb-inside-container > .gb-container > .gb-inside-container > *:last-child {
        margin-top: auto;
    }
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.