404 Page Header / Contact Form Thank you Page

Home Forums Jevelin Theme 404 Page Header / Contact Form Thank you Page

Home Forums Jevelin Theme 404 Page Header / Contact Form Thank you Page

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    RESOLVED Posts
  • kylemcneir
    Participant

    All my pages are using Header 2. The 404 Page is using another header, and breaks my menu if/when it is displayed. Where/how can I control the header for the 404 page. I already have a child theme, so a modification in that would probably be best.

    Second. Is there a way to have the contact form, upon submission, take the user to a separate, thank you page, rather than just displaying the text inline? It is my opinion this is a more elegant solution, where you can provide additional calls to actions.

    Thanks

    http://www.glaciercustompools.com

    Solution for this topic

    Hi @kylemcneir,

     

    I hope you are well today and thank you for your questions.

     

    All my pages are using Header 2. The 404 Page is using another header, and breaks my menu if/when it is displayed. Where/how can I control the header for the 404 page. I already have a child theme, so a modification in that would probably be best.

    You can resolve this issue by adding the following code in the functions.php file of your child theme.

    function jevelin_header_layout() {
        $header_layout1 = esc_attr( jevelin_post_option( jevelin_page_id(), 'header_layout', '1' ) );
        $header_layout2 = esc_attr( jevelin_option( 'header_layout', '1' ) );
    
        if( !is_search() && !is_singular('product') && !is_archive() && !is_home() && !is_404() ) :
    	return ( isset($header_layout1) && $header_layout1 && $header_layout1 != 'default' ) ? $header_layout1 : ( ( isset($header_layout2) && $header_layout2 ) ? $header_layout2 : '1' );
        else :
    	return $header_layout2;
        endif;
    
    }

     

    Second. Is there a way to have the contact form, upon submission, take the user to a separate, thank you page, rather than just displaying the text inline? It is my opinion this is a more elegant solution, where you can provide additional calls to actions.

    Currently the contact form element doesn’t have this option so to achieve this you have to use different contact form using following plugins.

     

    https://wordpress.org/plugins/contact-form-7/

    https://wordpress.org/plugins/contact-form-7-success-page-redirects/

     

    Best regards,
    Shufflehound team

    We have fixed the 404 page header issue in the latest version of theme which you can download from below.

     


    Please login to access this file

Viewing 3 posts - 1 through 3 (of 3 total)