- This topic has 15 replies, 5 voices, and was last updated 21 hours, 20 minutes ago by David.
August 17, 2020 at 7:20 am #1406204mkjj
We would like to customize the 404 page. This is pretty easy by copying it to the child theme folder. I removed the sidebar and changed the page to a boxed layout. While this is pretty straightforward, some not so clean workarounds are needed. For example, the classes for the “primary” DIV are generated dynamically. So, I have to hardcode the classes.
Can I customize the page using the out-of-the-box theme tools? As far as I understand, there is no customizer setting for the 404 page. So, I can’t set the layout options for this page, can I?
Don’t get me wrong. I’m ok with that. Just would like to know if a better solution exists.
Thanks.August 17, 2020 at 7:58 am #1406399DavidStaffCustomer Support
currently there is now way to directly edit the 404 template from within the theme.
But we are working on something that will allow that and a lot more in the next free theme and plugin updates.
However you can still use Elements for the 404. It has its own display rule:
Oh and the new Block Element also applies:August 17, 2020 at 8:09 am #1406414mkjj
Thanks for the lightning fast support. The element pretty much does the trick. Very neat and powerful feature. Nice work! Doing it this way, I don’t need a customized file in the child theme.August 17, 2020 at 8:10 am #1406419DavidStaffCustomer SupportSeptember 21, 2020 at 9:31 am #1452585B.J.
How do you create/edit 404 page?September 21, 2020 at 9:38 am #1452600LeoStaffCustomer SupportSeptember 21, 2020 at 9:52 am #1452610B.J.
Thanks… have installed the plugin and selected page to be displayed as 404 page. How do I add header image (page hero)? I already have some images for other pages, however if I add 404 custom page to the list of locations (display rules – in elements), I don’t see the image.September 21, 2020 at 9:54 am #1452613LeoStaffCustomer SupportJanuary 23, 2021 at 6:16 am #1630296Anders
Any ETA on..
“”But we are working on something that will allow that and a lot more in the next free theme and plugin updates.”””
So you will be able to edit the 404 page?January 23, 2021 at 7:43 am #1630511DavidStaffCustomer Support
you can already using the Block Element (or Hook Element).
See here for how to:January 23, 2021 at 8:39 am #1630559Anders
Awesome, thanks @DavidJanuary 23, 2021 at 8:44 am #1630561mkjj
Does this work in a child theme only? For test purposes I’v just tried it without a child theme, and it still does not show the content of the the new block element.January 23, 2021 at 8:53 am #1630575DavidStaffCustomer SupportJanuary 23, 2021 at 9:01 am #1630580mkjj
Ah, sorry, I was running an outdated version of GP Premium. I’ve just updated, and now it is working fine.
Thanks.January 23, 2021 at 9:01 am #1630581mkjj
Awesome feature, by the way!
- You must be logged in to reply to this topic.