Site logo

Archived topic

How do I design such layout?

21 replies · Started by vanya on May 18, 2020

Viewing posts 1–15 of 22

Hello guys
Hope you are all fine.
I need help with designing such blog layout on mobile
I have attached a picture

Hi there,

do you have a site already setup that i can see? Then i can advise on the changes you need to make.

I have updated the link in the website url
Please refer it
It is a blogger theme template but i am sure u guys can help me acheive that design with generatepress

Any luck guys?

Hi there,

sorry - your last reply slipped through our system.

Do you already have a site setup with a blog using GP?
Its much easier for me to provide a solution from your current set-up.

I don't have a live blog yet but I will create one and let you know quickly 😀

Hi there,

Try adding this CSS:

@media (max-width: 768px) {
    .navigation-branding {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .main-navigation.has-branding .menu-toggle {
        order: 1;
        margin-left: 0;
    }

    .main-navigation .mobile-bar-items {
        margin-left: auto;
    }

    .entry-summary {
        display: none;
    }

    body:not(.post-image-aligned-center) .inside-article .post-image {
        float: left;
        max-width: 150px;
    }
}

Then you'll want to move the featured image to above the title: https://docs.generatepress.com/article/adjusting-the-featured-images/

Please check the site now https://stveig.tk

I added the above code and also minimized the size of featured images but the featured image size is also getting changed on desktop view. I need separate featured images size on mobile.

Also, please help me with the padding code for mobile, this is what i would like to reduce https://prnt.sc/smy9io

Any luck?

The image size you require for desktop, is it much larger than the mobile version? If it isn't can you change the Featured Image size to the Desktop size you need

I think you're suggesting me something else than what I need.
I got some code from your previous topics and I tweaked a site bit.
Please go to https://stveig.tk and see how it looks.
Now, I want to increase the width of the featured images on desktop view.
Please help with the code.

Try adding this:

@media (max-width: 768px) {
    body:not(.post-image-aligned-center) .inside-article .post-image img {
        height: 75px;
        width: 100px;
        object-fit: cover;
        border-radius: 3px;
        margin-right: 10px;
    }
}
This archived topic is closed to new replies.