Site logo

Archived topic

Layout Modifications

11 replies · Started by Shahnam on March 13, 2020

Viewing posts 1–12 of 12

Hello ,

I'm trying to achieve a single blog layout like this : https://theidlecat.com/kitten-food-differences/

I've gotten this far (https://www.ipetcompanion.com/cat-not-eating/) but there are somethings i need help with.

1. In-article Images : On my site , I'll like to remove padding for in-article images which will allow them take the full container width : https://imgur.com/qi7ubDb

2. Fonts : Can you help me identify what fonts they're using for body (text) and headers? If successful , where do i change Generatepress theme fonts?

3. Header Alignment : How can i align my site header & colors like theirs? https://imgur.com/ni0Xjmf

4. Featured image padding : How can i achieve this : https://imgur.com/PEgTLbu

5. Post Meta Data : Where can i modify post meta data to something like this : https://imgur.com/I2w3KbL

I understand that you may already have documentations for some of my questions. If yes , please point me to where i can find them.

Thanks.

Hi there,

lets tackle a couple at a time:

1. If you're using the Gutenberg block editor then you chose the the Wide Width option in the block toolbar to do this. If not you can use try this rather hackish CSS that applies a similar method:

.entry-content img {
    margin: 32px -40px;
    max-width: unset;
    width: calc( 100% + 80px);
}

/* Adjust for mobile padding */
@media (max-width: 768px) {
    .entry-content img {
        margin: 32px -30px;
        width: calc( 100% + 60px);
    }
}

2. Fonts:
Body is set to System Stack font - so this will be displayed as a Sans font that your browser chooses. e.g Chrome will display Roboto.

Headings: Quicksand

3. Customizer > Layout > Header -> Enable Navigation as Header.

4. This CSS for the border radius:

.post-image-above-header .inside-article .featured-image img {
    border-radius: 4px;
}

Note: you will see the Content White background - so the effect only really works if you set the Colors > Background > Content to match the body.

Thanks David for the help , got what i want.

Btw , i noticed you didn't answer #5

5. Post Meta Data : Where can i modify post meta data to something like this : https://imgur.com/I2w3KbL

Also , i'll like my articles to show the last modified date and not published date.

Any help here?

Thank you.

Try adding this CSS to put some space above the Author box:

.author-box {
    margin-top: 2em;
}

You can uncheck: Display post navigation in Customizer > Layout > Blog --> Content > Single (tab)

1. those codes cannot be added using the Hook Element. This doc explains the methods you can use:

https://docs.generatepress.com/article/adding-php/

2. In the plugin settings you can uncheck the locations. And then use a Hook Element to add the shortcode they provide:

[scriptless]

You can use the same Hook as the Author box just give it a higher priorty number then the author box hook.

All good , thank you!

You're welcome

This archived topic is closed to new replies.