Archived topic
Custom page title instead of Blog using Elements
3 replies · Started by Teuvo on January 22, 2019
I use GPP Elements feature to make a simple custom header to each page.
<div id="pghero">
<h1>
{{post_title}}
</h1>
</div>
Unfortunately in Posts page there is text "Blog" in H1 even though a page with "News" title is acting as a Posts page in Settings - Reading.
I tried to solve this using a custom field "news" with a value "News", but with no luck.
<div id="pghero">
<h1>
{{custom_field.news}}
</h1>
</div>
It does not retrieve the value, only prints {{custom_field.news}} code as text inside H1
Is there a simple way to use custom post_title value replacing the default Blog?
Hi there,
This is still the easiest way as for now:
https://generatepress.com/forums/topic/changing-the-value-of-the-title-of-blog-archive/#post-749566
I believe there isn't a way to make the blog page template tag shows up as the page title but will check with Tom.
Let me know if this helps :)
OK, thanks. I'll do that or then use WP Show Posts to display articles in another page.
Yup that will both work :)
Glad we could help!