Site logo

[Support request] Category Archive Layout: Featured image in the same line as post title

Home Forums Support [Support request] Category Archive Layout: Featured image in the same line as post title

Home Forums Support Category Archive Layout: Featured image in the same line as post title

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #2468066
    Serge

    I am converting from Genesis to GP Pro.There is a customization I liked in Genesis that I am not able to replicate on GP Pro. It allows me to have thumbnails of the featured image of the post displayed at the right of the post’s title on the archive page. For an example, see: https://activepause.com/category/core/
    I have tried to replicate this with GP Pro. I can get adjust the size of the title in the archive, and I can make the featured image displayed smaller (e.g. 60 px width). And, when I look at the “catagory” page on a desktop browser, the featured image does appear to the left of the text of the post’s title. BUT there is a lot of space between entries.
    Not only that, but it doesn’t work on a phone. When I try the same page on my iphone, the featured image appears on top of the post’s title 9even though it is on the left of it when the same category is viewed on desktop). And there is a lot of space between posts, way too much.
    Note: If you follow the link Igave you above, you will only see the Genesis formatting, not the GP Pro. I have turned off GP Pro because of the problem I mentioned. I could send you screenshots, but i don’t see a way to do it.

    #2468184
    David
    Staff
    Customer Support

    Hi there,

    I can get adjust the size of the title in the archive, and I can make the featured image displayed smaller (e.g. 60 px width). And, when I look at the “catagory” page on a desktop browser, the featured image does appear to the left of the text of the post’s title. BUT there is a lot of space between entries.

    Can you set the page up in GP like you described above, and then let me know, so i can provide the additional steps ?

    #2468204
    Serge

    OK. I changed the theme to GP Pro, so you can see the way that same category page looks. Please note that, on the desktop, the thumbnail is on the same line as the title, whereas on the phone it goes above the title (or below, depending on the setting). In both cases, there is a lot of space between lines. See: https://activepause.com/category/core/

    #2468395
    David
    Staff
    Customer Support

    Try adding this CSS:

    body:not(.single) #page .post {
        margin-bottom: 0;
        padding-bottom: 0;
    }
    body:not(.single) #page .post .entry-header ~ * {
        display: none !important;
    }
    
    .post-image-aligned-left #page .inside-article .post-image {
        margin-top: 0;
        margin-block: 0.5em;
        margin-right: 2em;
        float: left;
        text-align: left;
    } 
    #2468401
    Serge

    David, Thanks. It works! Actually, it works too well, in a way. I mean, the lines are too close, especially on the iphone. I assume this is something I can tweak, but I am not sure which one to tweak.

    #2468520
    Serge

    I tried tinkering with the number, but I cannot find a way to have a little more space between the entries. Would you have a suggestion?

    #2468529
    David
    Staff
    Customer Support

    This part of the CSS:

    body:not(.single) #page .post {
        margin-bottom: 0;
        padding-bottom: 0;
    }

    you can increase either the margin or padding setting eg.

    body:not(.single) #page .post {
        margin-bottom: 20px;
        padding-bottom: 0;
    }
    #2468539
    Serge

    Thanks, David.

    #2468542
    David
    Staff
    Customer Support

    You’re welcome

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.