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
- Check if a menu is empty?
- Display user’s total comment count outside The Loop
- Changing user_nicename
- 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
- 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?
- Call to undefined function get_userdata() in plugin
- Does wordpress templates always in files or in database?
- Adding wrapper elements in the_date() like in the_title()?
- WordPress template page name displayed on screen
- Display custom field on 404 page outside loop
- Editing a PHP file to include a small text piece on every page
- How do you create two separate Register pages?
- Foreach loop inside an array_merge
- get_page_template_slug returns incorrect path
- Change page password every day (predictable password ;) )
- 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
- 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
- Allow a user or role to view drafts and previews, but not other admin privileges?
- Storing huge number of users in wordpress
- Get current user id in function php
- 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?
- Uploading/integrating custom user registration page
- Export WordPress User Meta to CSV/Excel
- How to Change Site Elements based on referring URL
- Allow specific user to edit a specific page
- Display current user metadata on WordPress page
- Help hooking into user_register
- Use WP user status (logged_in) to manage access to independent application
- 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
- (Who to follow) Twitter widget
- Can’t get_users info by using json_encode
- 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
- Calling PHP function doesn’t work in index.php
- Create page in templates for pages or the pages manager?
- 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
- Adapting a php array to WordPress
- Display pages from specific page template
- 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();
- Display custom meta box in my template file
- 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
- redirect user from login page if is logged
- How to lock users account until approvation
- 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
- How to add custom user role into wordpress
- WordPress post-template null warnings
