Created
May 22, 2014 13:29
-
-
Save woogist/d3622628491489d96294 to your computer and use it in GitHub Desktop.
fix the canvas 404 page notice
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Error Content Template | |
* | |
* This template is the content template for error screens. It is used to display a message | |
* to the viewer when no appropriate page can be found by WordPress. | |
* | |
* @package WooFramework | |
* @subpackage Template | |
*/ | |
/** | |
* Settings for this template file. | |
* | |
* This is where the specify the HTML tags for the title. | |
* These options can be filtered via a child theme. | |
* | |
* @link http://codex.wordpress.org/Plugin_API#Filters | |
*/ | |
$title_before = '<h1 class="title entry-title">'; | |
$title_after = '</h1>'; | |
$page_link_args = apply_filters( 'woothemes_pagelinks_args', array( 'before' => '<div class="page-link">' . __( 'Pages:', 'woothemes' ), 'after' => '</div>' ) ); | |
woo_post_before(); | |
?> | |
<article <?php post_class(); ?>> | |
<?php woo_post_inside_before(); ?> | |
<header> | |
<?php echo $title_before . apply_filters( 'woo_404_title', __( 'Error 404 - Page not found!', 'woothemes' ) ) . $title_after; ?> | |
</header> | |
<section class="entry"> | |
<?php | |
echo apply_filters( 'woo_404_content', __( 'The page you are trying to reach does not exist, or has been moved. Please use the menus or the search box to find what you are looking for.', 'woothemes' ) ); | |
if ( ( isset( $woo_options['woo_post_content'] ) && $woo_options['woo_post_content'] == 'content' ) || is_singular() ) wp_link_pages( $page_link_args ); | |
?> | |
</section><!-- /.entry --> | |
<?php | |
woo_post_inside_after(); | |
?> | |
</article><!-- /.post --> | |
<?php | |
woo_post_after(); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment