-
Badgerman
Hi. I’m building a florist website using GP’s “Prime” e-commerce starter site with WordPress, GeneratePress Premium & GenerateBlocks.
I would like to make add a bit of new/extra text to my current (default) 404 Page (see example at https://isanflowers2.com/404/)
I probably just want to add a subheading saying “404 Error” above the text “It looks like nothing was found at this location. Maybe try searching?”
I’ve found the 404.php file in my theme’s folder on my web server but it contains what looks like functions &/or hooks, and I don’t see how to add the above new/extra content.
Please could you tell me how I can do that, without creating a brand new custom 404 page?
Thanks in advance
-
Hi there,
Try creating a block element – hook, set the hook name to
before_entry_content, and set the location to 404 template. -
Badgerman
Thanks for you fast reply, Ying.
I tried (Custom Hook) before_entry_content, but nothing appeared on the page with that.
I changed the Hook to (CONTENT category) before_content and I think I am happy with the result.
– please could you check for me (see original page link) … -
Great! And
before_entry_contentis a gp hook, it’s not a custom hook 🙂 -
Badgerman
Thanks again Ying!
-
No Problem 🙂
- You must be logged in to reply to this topic.