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:
- How to add a .php file to WordPress
- Create a global variable for use in all templates
- Check if a menu is empty?
- Display user’s total comment count outside The Loop
- Changing user_nicename
- How to auto login user again after change user_login
- Can i check if user is doing any ajax request?
- How do I create a WP user outside of WordPress and auto login?
- How do I hide specific user profile fields?
- 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?
- Switching between custom templates in a post type of the admin menu
- 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?
- Get all user meta by meta key instead of ID
- Showing content from one page on another
- how could I load a different template part by page
- Page Automatically Generated from Theme?
- User’s total comment count excluding comments on their own posts
- How to hide all child pages with post_query?
- User management system similar to wordpress one?
- Can I install/embed WordPress on a ‘single page’?
- Show all posts by author
- Custom user login page by creating a plugin
- Programmatic Login from 3rd Party site
- Can’t access variable outside for loop
- How to display pictures from database?
- Get users that likes the post
- custom user role wordpress – grant guest access to edit.php without insert/update/delete
- Dynamic content in template
- Populate editor with some content of a page with a page template
- How to get the value of input hidden html from text editor to custom page template?
- Do not execute If User is login as Administrator or any Specific Role
- Best practice for show data to one specific user?
- Automatic Shortcode Creation with Custom Fields [closed]
- Does wordpress templates always in files or in database?
- get_users meta_query: REGEXP not working for matching new lines
- Show meta box only for default page template
- WordPress template page name displayed on screen
- Display custom field on 404 page outside loop
- How do you create two separate Register pages?
- Is it possible to create new user from external form using REST API?
- Foreach loop inside an array_merge
- get_page_template_slug returns incorrect path
- Change page password every day (predictable password ;) )
- show something only when user comes from specific page at remote host?
- Get the users that my following users are following
- create front-end users post list by specific category
- Posts are not looping through correctly
- ‘pre_user_query’ interfering with user export
- Make a page (url) not cacheable [closed]
- How can I call a specific file (via php) by referencing the logged-in username?
- Uses for function: wp_update_user
- Display additional user fields
- Sort new column in Users wp-admin
- Prevent header and footer from loading on specific pages with template or plugin
- Storing huge number of users in wordpress
- How to count active users on a specific page
- WordPress add custom search
- Hide Approved status for certain users in users list
- How can I edit a php custom page template to work in other themes?
- Export WordPress User Meta to CSV/Excel
- How to Change Site Elements based on referring URL
- Allow specific user to edit a specific page
- Help hooking into user_register
- How to add a full working piece of website already coded, to a large scale Website design project?
- Use WP user status (logged_in) to manage access to independent application
- 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
- (Who to follow) Twitter widget
- Editable Student file associated with basic User ID
- Pass form attributes to another php template in wordpress
- 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
- Update only some custom user fields
- List users in a dropdown for login
- Trying to display user meta by “name” – not by “ID”
- main menu page redirects to user ID
- Adapting a php array to WordPress
- Get author meta of all writers
- How can I put a custom field as the link of a button shortcode?
- Cross origin ajax request always returns 0 when calling get_current_user_id();
- Forbid certain users to access a specific page
- Loop on a wordpress Page instead of content coming from the WP text editor
- One folder to be accessible by one user
- Custom Post Type doesn’t have template content when creating programmatically in PHP but does when created in WP Admin
- How to create custom user role without plugin?
- PHP Works only for logged in users: [closed]
- Custom Admin Menu Report for Specific User ID
- duplicating page templates