Site logo

[Resolved] How to add container like this

Home Forums Support [Resolved] How to add container like this

Home Forums Support How to add container like this

Viewing 15 posts - 1 through 15 (of 18 total)
  • Author
    Posts
  • #2521787
    Vidyut

    Hi, I want to make this type of green or other colored container in archive pages, and single post page. Please help me, I’m new here and not much technical.

    Thanks.

    #2521965
    David
    Staff
    Customer Support

    Hi there,

    you can create a Block Element – Page Hero.
    See the doc here and check out some of the videos that will show you how:

    https://docs.generatepress.com/article/block-element-page-hero/

    Let us know how you get on

    #2522015
    Vidyut

    Thanks a lot, I understood. I also want to know how to make posts appear like this image. And when you hover it comes in.

    Thanks again

    #2522293
    David
    Staff
    Customer Support

    The basic post design can be created using a Block Element – Content Template:

    https://docs.generatepress.com/article/block-element-content-template/

    There you can design the indiviudal post card.
    And set the Display Rules Location to blog and All Archives

    This will replace the default themes archive cards.

    #2522817
    Vidyut

    Thanks I got it. Last question I have, how to make my posts featured images full container width. Like this image below

    It is also floating, so how I can make it.

    Here is what I’m having currently,

    Thanks

    #2522873
    Fernando
    Customer Support

    Hi Vidyut,

    For reference, can you provide the link to the site in question?

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

    #2523068
    Vidyut

    Okay, thanks here is the site below or one post from the site that has featured image like i want

    #2523212
    David
    Staff
    Customer Support

    Go to Customizer > Layout > Blog –> Featured Images, and select the Posts tab:

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

    And uncheck the Display padding around images

    #2523461
    Vidyut

    okay, got it. But, how to make it appear a bit up on the Hero?

    Like the first image I’ve listed.

    Thanks

    #2523524
    David
    Staff
    Customer Support

    It will require some CSS. Can i see your site ?

    #2523972
    Vidyut

    Okay, here is my site-

    #2523981
    Fernando
    Customer Support

    Try adding this through Appearance > Customize > Additional CSS:

    @media (min-width: 769px) {
        .single-post .content-area .site-main {
            margin-top: -40px;
        }
    }

    Replace the -40px value with your preference.

    #2523993
    Vidyut

    Thanks, but it is not working on mobile.

    #2523996
    Fernando
    Customer Support

    I see. Just remove the @media query if you want it for mobile as well.

    For instance, try this instead:

    .single-post .content-area .site-main {
            margin-top: -40px;
        }
    #2524002
    Vidyut

    Thanks, it works. Last thing I’ve is, how can I make the archive featured image full width to container and also text to adjust. And also the shadow with animation effect.

    Here is the archive link i want [first link]

    And second link is my current site’s archive post containers.

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