Site logo

Archived topic

Change Post Title via Hooks

1 reply · Started by Yannick on June 22, 2020

Viewing posts 1–2 of 2

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)...

Hi there,

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

Let me know if this helps :)

This archived topic is closed to new replies.