Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #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.

    #247622

    Hey 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!
    Devin

    #247638

    Can you specify the edits needed to change the layout to have a right sidebar using a widget I set up?
    Thank you.

    #247643

    Actually, 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’>
    <?php

    get_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 –>

    #248022

    Typically 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' ); ?> with twelve . Then remove the call to show the sidebar:

    
    				//get the sidebar
    				$avia_config['currently_viewing'] = 'page';
    				get_sidebar();
    
    #248426

    thank you.

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Edit 404 Error Page in Child Theme’ is closed to new replies.