-
Jericho
How can I make the following changes to the homepage and archive pages without affecting individual posts and pages:
1. Reduce the spacing between the featured image, title, and excerpt
2. Change the font size of the excerpt
3. Change the color of the excerpt textSee Private information section for screenshots.
-
Hi there,
the simplest method would one to use a GP Block Element Content Template for the archive page.
https://docs.generatepress.com/article/block-element-content-template/
In the content template settings sidebar there are some Templates to choose from which would get you started. You can then design the look of your individual posts in the blog and archives.
-
Jericho
Hi David,
Thanks, but that’s really not helpful at all. Are you suggesting I need to buy and install a new plugin just to make a simple change?
Editing some CSS would be a much simpler solution.
I’ll just figure it out myself. 🙁
-
Thanks, but that’s really not helpful at all. Are you suggesting I need to buy and install a new plugin just to make a simple change?
No. The GenerateBlocks plugin you need is Free. It’s what we use for the majority of our GP Site Library builds and allows you to visually design your own templates in the GP Elements module.
But that method is overkill if you just want to reduce the space on archives. Here is some CSS for that:
body:is(.blog, .archive) .inside-article .post-image { margin-bottom: 1em; } body:is(.blog, .archive) .inside-article .entry-summary { margin-top: 1em; }
-
Jericho
Hi David,
Thank you for clarifying and providing the CSS—that’s exactly what I needed!
I apologize for my earlier reaction. The reason I’m sticking with GeneratePress, even though most of my needs could be met with the Twenty Twenty-Four theme, is because I’m not a fan of blocks and prefer to keep things simple—the GP way, you know. I didn’t understand it clearly before, so sorry about that.
Thanks again for your help!
-
Jericho
I’ll mark this topic as resolved now.
-
No apologies necessary, we are more than happy to help!
- You must be logged in to reply to this topic.