Site logo

Archived topic

Where is 'Blog' archive title text coming from?

8 replies · Started by Clifford on May 30, 2021

Viewing posts 1–9 of 9

Hi there

You're using a Header Element found in Appearance > Elements:

https://docs.generatepress.com/article/header-element-overview/

If the header element is using {{post_title}} template tag then the Theme outputs 'Blog' on that page, as the blog has no title. In those instances you would need to exclude the Blog from that header element, and create a specific element for the Blog and use plain HTML for the title. eg. <h1>My blog page title</h1>

Ah, very good, thank you.

FYI: I don't think it's right that the Featured Images on Pages can only be removed via the 'Blog' add-on (premium). Its name is unintuitive and themes don't typically display a page's featured image on top like posts. But, I'm glad I found the setting.

Selecting "Blog" worked for me to exclude but not to include: https://share.getcloudapp.com/yAurxqjX

I included both "Blog" and "Posts Archive" and then it still didn't display: https://share.getcloudapp.com/L1uBxwgY

1) What is "Posts Archive" vs "Blog" options?
2) See the "Posts Archive" bug upon saving (empty drop-down in the video)
3) Plus, not part of the video, why does the "Articles" page (set to the blog loop) not appear within the drop-down of inclusion/exclusion?

1) What is “Posts Archive” vs “Blog” options?

Posts archive are all the archive pages, including category archives/author archives/tag archives and so on.
Blog is the posts page, in your case is the articles page.

2) See the “Posts Archive” bug upon saving (empty drop-down in the video)

It's been fixed for the first time adding it to the location list, but we still need to fix it when you go back in editing. Thanks for pointing out :)
https://www.screencast.com/t/R7zqDhJ4Slrs

3) Plus, not part of the video, why does the “Articles” page (set to the blog loop) not appear within the drop-down of inclusion/exclusion?

Because it's the Blog page, no matter what name it is, it's still the blog page.

For the Blog heading element, what hook are you using? Let me know :)

Doh, forgot Block elements need a hook - any reason why that's at the bottom of the settings and not "required" (can't save until chosen)?

It seems after_header was a good choice. Is that a recommended hook for top of a blog page?

Yep - after_header is the right place for it.

tyvm!

You're welcome

This archived topic is closed to new replies.