Page template not working when logged out

I found the solutions:

I created a duplicate header and footer file named them header-nonavigation.php and footer-none.php

In these files, I deleted the navigation code and the footer code (do not hide the navigation/footer for some reason it won’t load the correct php header/footer files)

I called to these files in my page template php file as get_header(‘nonavigation’) and get_footer(‘none’).

This accomplished exactly what I needed. Whether I am logged in or out the navigation and footer no longer appear.

Here is a screenshot:

enter image description here

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)