← Back
Editing: helper.php
<?php if ( ! function_exists( 'zoya_set_404_page_inner_classes' ) ) { /** * Function that return classes for the page inner div from header.php * * @param string $classes * * @return string */ function zoya_set_404_page_inner_classes( $classes ) { if ( is_404() ) { $classes = 'qodef-content-full-width'; } return $classes; } add_filter( 'zoya_filter_page_inner_classes', 'zoya_set_404_page_inner_classes' ); } if ( ! function_exists( 'zoya_get_404_page_parameters' ) ) { /** * Function that set 404 page area content parameters */ function zoya_get_404_page_parameters() { $params = array( 'title' => esc_html__( 'The Page You Are Looking Is Not Found', 'zoya' ), 'text' => esc_html__( 'The page you are looking for does not exist. It may have been moved, or removed altogether. Perhaps you can return back to the site\'s homepage and see if you can find what you are looking.', 'zoya' ), 'mark' => esc_html__( '404', 'zoya' ), 'button_text' => esc_html__( 'Back to home', 'zoya' ), 'skin' => esc_attr('dark') ); return apply_filters( 'zoya_filter_404_page_template_params', $params ); } }
Save File
Cancel