[Support request] Change Post Title via Hooks

Home Forums Support Change Post Title via Hooks

  • This topic has 1 reply, 2 voices, and was last updated 3 months ago by Leo.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1338075
    Yannick

    How can I change the post title (the one that shows on the page, not in the browser bar) with a Hook?
    Right now, I have a “Header” element type that uses <h1>{{post_title}}</h1>, but it doesn’t show anything on my 404 page. So I’d like to use PHP to set a post title if it’s the 404 page (unless there’s a better way to do this)…

    #1338151
    Leo
    Staff
    Customer Support

    Hi there,

    You would create a separate header element and use it specifically for the 404 page.

    Let me know if this helps 🙂

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