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:
Related Posts:
- Getting only direct child pages in WordPress with get_pages
- How to add a .php file to WordPress
- Create a global variable for use in all templates
- Add extra field to users
- Check if a menu is empty?
- Integrating WordPress to my website, while keeping my own authentication system
- Display user’s total comment count outside The Loop
- load/require specific php files for specific pages/templates/post types
- Changing user_nicename
- How to auto login user again after change user_login
- What is the most efficient way to search users by their display name?
- Can i check if user is doing any ajax request?
- How do I create a WP user outside of WordPress and auto login?
- Network installation giving errors when viewing or adding a user
- Showing user ID on user main page from screen options
- Getting the Current User
- How do I hide specific user profile fields?
- Authenticating to WordPress, using my own authentication two-factor system
- Exclude pages with certain template from wp_list_pages
- How to track a users progress through pages by inserting data into WordPress Database?
- Loading page template into shortcode
- automated tests as a user?
- Help with a custom page template – listing contents of childpages?
- How can I default to all WordPress roles when parameter is not included in shortcode?
- there’s a way to include a minimal WP for check only the current user, its roles (caps?) and then release/free it?
- Easiest way to show total number of subpages
- Switching between custom templates in a post type of the admin menu
- Delete option value from array using update_option()
- page template for attachement page?
- get_users(…) only returns one user
- List User order by ID in Descending order (Backend)
- Changing the template hierarchy
- Warning: Use of undefined constant HTTP_USER_AGENT – assumed ‘HTTP_USER_AGENT’ (this will throw an Error in a future version of PHP)
- How to enqueue CSS and JS only on specific template?
- Use WP user status (logged_in) to manage access to independent application
- Add another role to a user when they click a button?
- Query to show average # of months all accounts with specific role have been active
- is_user_logged_in() not working in homepage
- Use wordpress for /blog section only and all other pages static, but using same footer.php and header.php
- remove_action() not working in page template – Genesis
- wordpress more than one ajax request at the same time issue
- (Who to follow) Twitter widget
- Can’t get_users info by using json_encode
- can’t grab PHP $_POST variable
- Editable Student file associated with basic User ID
- Adding users to another blog
- Pass form attributes to another php template in wordpress
- Changing WordPress author name in database
- Matching multi user
- Code works on page-example.php by not category-example.php
- Private messaging – Getting and displaying the avatar/url of a message recipient
- Updating custom user meta
- Calling PHP function doesn’t work in index.php
- Loop 1 user randomly
- Create page in templates for pages or the pages manager?
- Create a custom theme-specific page, invisible in the admin-panel?
- Update only some custom user fields
- List users in a dropdown for login
- How to set max users to 17.000
- Trying to display user meta by “name” – not by “ID”
- main menu page redirects to user ID
- Execute php in pages
- Use page.php for front page
- Why isn’t my link attribute getting my css?
- How to ‘remember’ a site member’s last visited page?
- How to connect database table to each registered wordpress user.
- Adapting a php array to WordPress
- Get author meta of all writers
- Display pages from specific page template
- How can I put a custom field as the link of a button shortcode?
- Let users register weight each day and save it in DB
- Display a list of users with avatar filterable with alphabets
- Tables not showing divs and loop/php items
- Cross origin ajax request always returns 0 when calling get_current_user_id();
- Display custom meta box in my template file
- Parse error: syntax error, unexpected ‘}’ in C:\wamp64\www\Proiect\aplicatie\user_check.php on line 18 [closed]
- Forbid certain users to access a specific page
- Check if username doesn’t exists
- Loop on a wordpress Page instead of content coming from the WP text editor
- One folder to be accessible by one user
- WP query with variables gives no result for specific user
- Import users and custom user meta from csv
- redirect user from login page if is logged
- How to lock users account until approvation
- rest_cannot_create_user – Sorry, you are not allowed to create new users. CURL WORDPRESS REST API
- Getting invalid user ID error when creating a new user with wp_insert_user
- Custom Post Type doesn’t have template content when creating programmatically in PHP but does when created in WP Admin
- How to create a User Role and give permission to only use Web Stories plugin?
- How to create custom user role without plugin?
- PHP Works only for logged in users: [closed]
- Custom Admin Menu Report for Specific User ID
- Styling best practices for single pages/templates
- How to add custom user role into wordpress
- duplicating page templates
- condition for specific pages
- Quiz page template, checked attribute missing when option selected
- Redirect WordPress page to the latest created post by the logged in author/user
- Only registered users can see part of the contents of single.php
- change Dashboard default page on login
- WordPress post-template null warnings