-
AuthorPosts
-
April 4, 2014 at 3:36 pm #247496
Can the sidebar layout and widget designation for that sidebar be changed via Theme’s Editor for the child theme’s 404 Error Page? Thanks.
April 4, 2014 at 8:14 pm #247622Hey simplyaha!
You can completely customize the 404 page through your child theme by copying over the 404.php file into your child theme and then editing it.
It doesn’t have a template file you can edit inside WordPress however.
Cheers!
DevinApril 4, 2014 at 8:49 pm #247638Can you specify the edits needed to change the layout to have a right sidebar using a widget I set up?
Thank you.April 4, 2014 at 9:24 pm #247643Actually, we would prefer no side bar at all. Could specify where/what changes would be needed in the following code to achieve that? Thank you.
<?php
global $avia_config;/*
* get_header is a basic wordpress function, used to retrieve the header.php file in your theme directory.
*/
get_header();echo avia_title(array(‘title’ => __(‘Error 404 – page not found’, ‘avia_framework’)));
?>
<div class=’container_wrap container_wrap_first main_color <?php avia_layout_class( ‘main’ ); ?>’>
<?php
do_action(‘avia_404_extra’); // allows user to hook into 404 page fr extra functionallity. eg: send mail that page is missing, output additional information
?><div class=’container’>
<main class=’template-page content <?php avia_layout_class( ‘content’ ); ?> units’ <?php avia_markup_helper(array(‘context’ => ‘content’));?>>
<div class=”entry entry-content-wrapper clearfix” id=’search-fail’>
<?phpget_template_part(‘includes/error404’);
?>
</div><!–end content–>
</main><?php
//get the sidebar
$avia_config[‘currently_viewing’] = ‘page’;
get_sidebar();?>
</div><!–end container–>
</div><!– close default .container_wrap element –>
April 7, 2014 at 4:03 am #248022Typically we aren’t able to assist with file customization but its fairly simple here. You can hard code the grid units into the main container by replacing
<?php avia_layout_class( 'content' ); ?>
withtwelve
. Then remove the call to show the sidebar://get the sidebar $avia_config['currently_viewing'] = 'page'; get_sidebar();
April 7, 2014 at 8:14 pm #248426thank you.
-
AuthorPosts
- The topic ‘Edit 404 Error Page in Child Theme’ is closed to new replies.