Make error pages point outside the theme
-
You’ve probably invented this wheel already, but I haven’t found it yet.
Using multiple themes can you make the Error pages point to a constant place (within Word Press) rather than to a 404.php in a particular theme? I’m thinking something along the lines of the file being in /wp-content/
I’m not at all sure about the editing I did here to include the header, sidebar and footer
<?php include (TEMPLATEPATH . get_header() ); ?><h2><?php _e(‘Not Found’); ?></h2>
<?php _e(‘Sorry, but the page you requested cannot be found.’); ?>
<h3><?php _e(‘Search’); ?></h3>
<?php include (TEMPLATEPATH . ‘/searchform.php’); ?>
<?php include (TEMPLATEPATH . get_sidebar() ); ?>
<?php include (TEMPLATEPATH .get_footer(); )?>
Then using .htaccess to point the error page to FULL_URL/WORD PRESS LOCATION/index?404.php or would FULL_PATH/404.php work as well and cover any other directories if it is in the root folder?
- The topic ‘Make error pages point outside the theme’ is closed to new replies.