Site logo

[Resolved] How to make my archive posts like this

Home Forums Support [Resolved] How to make my archive posts like this

Home Forums Support How to make my archive posts like this

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #2524013
    Vidyut

    I want my posts container featured images to appear full and also the text. Secondly, I want the posts grids have shadow and animation. Like the first url I’ve shared.

    Second URL is my site, where I want to have that.

    #2524028
    Fernando
    Customer Support

    Hi Vidyut,

    You can try adding something like this through Appearance > Customize > Additional CSS:

    body.archive .inside-article {
        padding: 0;
        transition: all 0.3s ease;
        box-shadow: 0 0 4px 1px #c6c6c6;
        
    }
    body.archive .inside-article:hover {
        transform:scale(1.05);
        box-shadow: 0 0 16px 1px #000;
    }

    This is also possible through GB Pro. See: https://docs.generateblocks.com/article/effects-overview/

    #2528582
    Vidyut

    Not working

    #2529018
    Leo
    Staff
    Customer Support

    Are you trying to replicate the example site exactly?

    If so try disabling the Content template you’ve created first – the example site isn’t using one.

    #2529170
    Vidyut

    Still it is same

    #2529775
    Leo
    Staff
    Customer Support

    Now set the featured image position to above title

    Then uncheck display padding around images.

    Reference: https://docs.generatepress.com/article/adjusting-the-featured-images/

    #2529984
    Vidyut

    Okay, it is working. But, I don’t want the white space

    Also the border, shadows and others are not same as the site I sent.

    Lastly, I think the code is only for archive pages, but I want all the post grids like that. For example, I want to show same posts grids in my homepage.

    #2530597
    Leo
    Staff
    Customer Support

    Okay, it is working. But, I don’t want the white space

    Add this CSS:

    .entry-summary, footer.entry-meta {
        display: none;
    }

    Then consider reducing the content padding – try something like 30px all around:
    https://docs.generatepress.com/article/content-padding/

    Also the border, shadows and others are not same as the site I sent.

    You can adjust the box-shadow property in Fernando’s CSS here:
    https://generatepress.com/forums/topic/how-to-make-my-archive-posts-like-this/#post-2524028

    This resource might be helpful: https://www.cssmatic.com/box-shadow

    Please be mindful of our support forum scope:
    https://generatepress.com/what-support-includes/

    Thanks!

    #2530946
    Vidyut

    Thanks a lot, it is working. Lastly, can you tell me when I will create the homepage like the site I sent, how can I show that type of post grid? Because the code is only for Archive pages not for all posts grids.

    Thanks.

    #2530986
    Fernando
    Customer Support

    Can you share a link where it’s not appearing like that?

    You may use the Private Information field for this: https://docs.generatepress.com/article/using-the-premium-support-forum/#private-information

    #2531000
    Vidyut

    Here in the homepage.

    #2531028
    Fernando
    Customer Support

    Try adding this CSS:

    body.blog .inside-article {
        transition: all 0.3s ease;
        box-shadow: 0 0 4px 1px #c6c6c6;
        overflow: hidden;
        
    }
    body.blog .inside-article:hover {
        transform:scale(1.05);
        box-shadow: 0 0 16px 1px #000;
    }
    #2532459
    Vidyut

    ok thanks.

    #2532463
    Fernando
    Customer Support

    You’re welcome, Vidyut!

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