Site logo

Archived topic

Archive page

5 replies · Started by Dmitry on April 29, 2020

Viewing posts 1–6 of 6

Hi!

Before starting the topic, I checked your manual, so, sorry if I missed the solutions for the following issues:

1. Whats the most suitable way to hide "entry-title" and "entry-summary" of the posts for all/one archive pages? I just want to set only featured images as a link to single posts. Maybe you can add this feature into the future GP versions?

2. Is there any way to hide the header container on the specific archive page? (not css display:none;)

Hi there,

1. Would a CSS solution to remove the title work for you? It's not very common to remove the title of a post so I'm not sure if we would add it as an option.

As for entry summary, the customizer option should work:
https://docs.generatepress.com/article/blog-content-layout/#archives

Just set the content type to excerpt, wordcount to 0 and remove the read more label.

If you need to do that conditionally, then this filter is needed:
https://docs.generatepress.com/article/blog-content-layout/#archives

2. A layout element can do this:
https://docs.generatepress.com/article/layout-element-overview/#disable-element

Thanks Leo!

2) - is exactly what is needed.

As for the 1), well, when you use your posts as the portfolio elements (design works, pictures, etc) you actually don't need a title for them. The minimalism design approach is rather trendy today.

Sometimes, it looks a little bit weird, when there is a title describing what is on the image. It is obvious what is on the image when you just see the image.

Ok so the CSS to remove the titles on archive page would be:

.blog h2.entry-title, .archive h2.entry-title {
    display: none;
}

Let me know if you need it for a specific page or category then I can tweak the CSS.

It would be easier if you link me to them.

Thanks!

No problem :)

This archived topic is closed to new replies.