amandablum / mindup

1 stars 0 forks source link

create 404.php to handle 404 requests #99

Closed amandablum closed 8 years ago

chuckreynolds commented 8 years ago

note: create 404.php tpl https://codex.wordpress.org/Creating_an_Error_404_Page

amandablum commented 8 years ago

right, but I want it editable by clients.

chuckreynolds commented 8 years ago

yup. was just a note to myself. i'll make it as a tpl as mentioned so in the admin page you'll have to select this page as template. but i needs to be "404.php" for WP to automagically do routing on error code

amandablum commented 8 years ago

:+1:

chuckreynolds commented 8 years ago

fyi: was removed in https://github.com/amandablum/mindup/commit/a56b7209e5b9d50d91b4ee56712805bbe577f4af

chuckreynolds commented 8 years ago

EDIT. okay that was much more difficult than I thought. Work around since:

  1. 404.php can't use Template:
  2. won't assign to a page to use the acf_hyperloop... it uses it but no way to assign the fields in admin to it...

SO... brilliant workaround. WIDGETS. :) Added custom sidebar for 404 page; add Visual Editor widget into sidebar. BAM. done. moving on.

chuckreynolds commented 8 years ago

test: http://mindup.vuurrclients.com/foo

amandablum commented 8 years ago

Not our ideal solution but understand the problems above, so it'll have to do. Thx.