Archived topic
Question on post headline
27 replies · Started by Christopher on May 3, 2022
Hi there,
I am trying to set up a template for future blog posts on the website. I understand that the Reuseable block feature would be the way to go for that nowadays? I would set up a master post with all the formatting as Id like it and then copy the reuseable block into any new posts. If I change the master post, these changes will be affecting the new posts as well, correct?
Now I am trying to change the way the headline looks in the Customizing ▸ Layout > Blog menu. I am able to remove my name, the date, featured image etc, but I do not see an option to remove the headline. Right now I have 2 of these, the other one coming from the "Page & Posts Headers" Elements page.
See screenshot:

I like the way the first headline looks from the "Page & Posts Headers" Elements page, is there a quick way to remove the second headline from h1.entry-title with the same text so the post starts with the date and then the content?
Thanks
I understand that the Reuseable block feature would be the way to go for that nowadays?
That's never the case actually.
The correct and better way is (the dynamic options are from GenerateBlocks plugin)
Create a block element - content template, in there you can create the post's template.
https://docs.generatepress.com/article/block-element-content-template/
Assign the element toPosts > all posts as location.
When you create a new post, you just need to update the text content and featured image if you are using dynamic image in your content template or page hero.
Let me know if there's anything unclear :)
Thanks,
I have tried that with a new "Block - Content Template" and location "blog" and also made sure its applied to all posts. When I now click on "New post", it just shows me the empty default and not the content from that new template. I believe I have done it as described in the video, just without all the design part in the middle.
Under "Display Rules" at the bottom I have selected Location > Blog.
What could I have missed?
PS: I fixed the second issue from the screenshot already as well now.
Thanks
Chris
The location needs to be posts > all posts if you want it to apply to the single post page. The example in the video is to create content template for archive/blog, not single post.
When I now click on “New post”, it just shows me the empty default and not the content from that new template
That's right, you won't see it in backed.
Thanks, that worked!
Now I am not sure if its the right way to go for my scenario. I checked my first test post and its content got changed as well to what I have written in the template post.
What would be the best way to have a template that saves the styling with a placeholder text to use for new all new posts while not changing the existing posts in their content? Only if I make a change in the general design would I like to have a change in the style only for the posts that are live already, without touching their content.
Hope that makes sense?
I checked my first test post and its content got changed as well to what I have written in the template post
You put in static text in the element?
If so, remove it and try adding a dynamic content block (the icon is a GP logo), it will output the text content from each post:
https://www.screencast.com/t/mwc9Pvh8F1X
Yes it was static text, thanks!
So for the content that would work, what about headlines etc? How can I get a dynamic headline? Its not part of the 4 options in the "Type" dropdown list.
Hi Christopher,
You would need to add a Headline Block.
Example: https://share.getcloudapp.com/6quZlzPL
Hope this clarifies. :)
Thanks, I can only see "Title" in the drop down menu there, which should be for the main title of the page and not for the headline or? Shouldnt there be both Title and Headline in the dropdown or am I missing something? Thanks
Yes, this would pull the page title if you set your Content Template to display on a page for instance.
To clarify, what Headline are you referring to?
Hope to hear from you soon. :)
Sure, ill provide the post details in the private section.
Hi there,
Can we take a big step back and get a better understanding of the design you want to achieve as i am not sure what you have so far is what you want or need.
Lets approach it from this view, if we consider each post you write you will add the Title and The Content in the Post Editor. So, what do you want to appear Before the Content and After the Content ?
Hi there,
Can we take a big step back and get a better understanding of the design you want to achieve as i am not sure what you have so far is what you want or need.
Lets approach it from this view, if we consider each post you write you will add the Title and The Content in the Post Editor. So, what do you want to appear Before the Content and After the Content ?
Hey David,
I would like to have a set theme of fonts / graphics / layout in general saved a post template so when I click on Add new post, I get that exact them and can then start changing the content / text. Optionally, it would be nice if whenever I want to change the layout of the template, it would transfer these changes to the already published posts based on the same said template.
Content Templates work when you're adding dynamic content such as the H1 Content Title, the posts Featured Image or some Post Meta ( eg. Date, Author, Taxonomy Terms, Paging Navigation ). If you include static content in a template, then that same static content will be displayed in every post that template is applied to, you cannot edit it for each post.
So when it comes to the Content you add in the post editor eg. a H2 subheading, H3 subheading, a paragraph etc. you should define their styles in the Customizer ( eg. Typography and Colors ). Then your posts will automatically inherit those styles as you add them to your content.