- This topic has 7 replies, 3 voices, and was last updated 3 years, 4 months ago by Tom.
-
AuthorPosts
-
November 27, 2020 at 4:11 am #1551718Cris
Hi,
I am trying to change the title of my blog page section. Default is ‘blog’ but I want it to read ‘articles’ or perhaps add additional information there. Such as an archives, etc.
When I go to the elements area, there is no header added for blog. (When I view the source code, it shows it as a <h1> but I can’t seem to find where to edit it).
I’ve checked the previous discussion posts and while they make sense I don’t have that default blog header anywhere. When I try to create a new one, it doesn’t work either.
November 27, 2020 at 4:38 am #1551791DavidStaffCustomer SupportHi there,
the site is using the Header Element:
https://docs.generatepress.com/article/header-element-overview/
You may have only one Header Element that is set to the entire site and uses the
{{post_title}}
template tag. For the Blog, which does not have a Content Title, it outputsBlog
by default.To add a custom title to the Blog, you will need to:
1. Edit the Display rules of the current Header Element and in the Display Rules Exclude
Blog
2. Create a new Header Element with the same settings specially for the Blog page.
For this you would not use the template tag, just output your own title eg.<h1>My blog title</h1>
Then set its Display Rules Location to:Blog
November 27, 2020 at 5:02 am #1551836CrisThank you David,
Works perfectly.
If I wanted to add an archives format to that page, or additional content above the archives, such as a search bar, what would be the best method? Does the articles page need to be edited through a similar process?
November 27, 2020 at 6:37 am #1552058DavidStaffCustomer SupportInstead of a Header Element you could use a Block Element:
https://docs.generatepress.com/article/block-element-overview/
You can set it to display in the same position a Header element would by selecting Hook:
generate_after_header
With the Block Element you can include any block content you like such as Search blocks.
You may want to install the GenerateBlocks plugin which will give you a lot more design control:November 27, 2020 at 7:18 am #1552530CrisThanks David,
This is perfect. I appreciate the help and prompt response. Amazing support.
Please see notes for one last thing.
November 27, 2020 at 10:23 am #1553057TomLead DeveloperLead DeveloperHi there,
The Newsletter page has top and bottom padding applied to the Hero. If you apply the same padding to the Articles page, it will look the same.
Let us know ๐
November 27, 2020 at 12:42 pm #1553385CrisThanks Tom. Worked perfectly.
Much appreciated.
November 28, 2020 at 11:21 am #1555352TomLead DeveloperLead DeveloperYou’re welcome ๐
-
AuthorPosts
- You must be logged in to reply to this topic.