[Resolved] Custom page title instead of Blog using Elements

Home Forums Support [Resolved] Custom page title instead of Blog using Elements

Home Forums Support Custom page title instead of Blog using Elements

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #789319
    Teuvo

    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?

    #789449
    Leo
    Staff
    Customer Support

    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 ๐Ÿ™‚

    #789676
    Teuvo

    OK, thanks. I’ll do that or then use WP Show Posts to display articles in another page.

    #790155
    Leo
    Staff
    Customer Support

    Yup that will both work ๐Ÿ™‚

    Glad we could help!

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.