Creating a Page Template is a much simpler way of alternating Page views, creating one is nice and easy:
- Simply copy the
page.php
in your theme, and paste it. - Rename the file to anything, best practice is:
page-template-something.php
- Put the following code into the file at the very top:
<?php
/**
* Template Name: My Design
*/
//get_header(); //or do whatever
- Now you can remove everything from the page and redesign however you like.
Copying the existing page.php
will give a guide on page structure, you can follow that or can create your entirely new view.
More details:
Related Posts:
- What is a MIME type?
- warning javax.* types are not being woven because the weaver option ‘-Xset:weaveJavaxPackages=true’ has not been specified
- Xcode build failure “Undefined symbols for architecture x86_64”
- Error ORA-00054 resource busy and acquire with NOWAIT specified or timeout expired in oracle11g
- Pythonic way to create a long multi-line string
- jquery variable syntax [duplicate]
- What is a hash map in programming and where can it be used
- ++someVariable vs. someVariable++ in JavaScript
- All com.android.support libraries must use the exact same version specification
- How can I run a program from a batch file without leaving the console open after the program starts?
- How to enqueue JavaScripts in a plugin
- What is the wordpress wp-includes folder for?
- What do you think about custom designed plugin/theme options UIs?
- Is there a limit on making calls to WordPress.org API’s?
- register_uninstall_hook() vs uninstall.php – which one is better way to handle plugin uninstallation script?
- WP 3.3 Tooltips API?
- Clarity needed on usage of multiple 403 forbidden header() functions at the beginning of the plugin files
- How do I implement a jQuery UI dialog modal in a WP plugin?
- Cron firing my function everytime wp-admin is visited
- Authoritative answer on which boots first – Plugins or Themes?
- Plugin development with unit tests
- register_activation_hook() not activate plugin
- Problem with sorting entries in a plugin’s admin interface table
- How do I handle multiple Submit buttons in plugin’s option page?
- WP_Error handles errors, but how can I show success with a message?
- `wp_set_script_translations` with `wp.i18n` does not return translated strings in simple plugin
- Sessions not creating correctly in custom function
- Use a PHP file as action for a form in a WordPress plugin, what’s the correct way?
- Featured Image not showing in admin
- Hello dolly type plugin that allows people to add their own
- htmlentities and editing text
- Add Submenu Link in add_submenu_page That Opens in a New Window
- How to update total price of completed order in woocommerce? [closed]
- How do I create a custom api endpoint?
- How to check if a stylesheet is already loaded?
- Access Default Widget's Controls in Customizer Pane
- Turn off Admin Bar (Toolbar) in backend – no easy way
- How to filter content on Save/Publish to add rel=”nofollow” to all external links?
- How to remove images from my plugin page in WP Directory?
- When to use add_settings_section vs just register_setting?
- Find out Requires WP tag for a plugin when submitting it
- How to prevent UNDO on guternberg block editor
- WP_Query filters
- WordPress pre_get_posts with combined results of two queries (OR)
- Caching the_content calls
- Video Security just like facebook [closed]
- How to load library scripts in admin from plugins in noConflict wrapper?
- wordpress how to query wp_options table
- Alternatives to DISALLOW_FILE_EDIT wp-config Constant? It Breaks Some Plugins
- How to build a fool proof AdSense revenue sharing model?
- How to query custom db table?
- Bad Request in AJAX
- Setting up Version Control for WordPress plugin development
- How to replace default comments with custom HTML?
- Is there an admin hook that will let me read GET variable before it’s too late to set the header Location
- Include file in plugin file
- Error passing post_content to function
- Create post and update in the same flow [closed]
- Is there any way to fire heartbeat API from for website visitors?
- Look for a file in a theme before loading from plugin
- Adding Custom CSS with PHP
- Submit form to a different PHP file in the same plugin folder
- Simple plugin don’t display content
- What should I pass for $needed_dirs when calling _unzip_file_pclzip (aka PclZip)?
- Get cat parameter from admin-ajax
- get the permalink error
- Generating a password-protected front-end page via a plugin
- Getting products information, in woocommerce based on products ID
- How the add_action is included in the plugin development
- how to create a shortcode from a variable in plugin
- How do I ensure I can loop through every enqueued script and CSS?
- What is the source of the $post_id in a hook argument?
- “Headers Already Sent” Nightmare on Plugin
- Use content filter on the post that is password-protected
- User Registration Moderate
- Modify request query string before plugins
- auto create only 1 wp page in activate custom plugin
- Is there a general way to get a themes primary colour?
- Custom query not working in plugin admin page
- How to work with AJAX and WordPress?
- Attach an image to new posts
- Add Page With Parent ID
- How to view plugin ratings?
- Get next page in get_posts
- Getting Plugin directory and url
- How can I interact with a third party service that sends POST requests to me in response to the order information that I send them?
- Fatal Error triggers Before WP_Error handler
- How to create wordpress plugin support page? [closed]
- Checking if the query is empty does not work
- What is the meta_query key name for the woo product average rating? [closed]
- how to catch a data from a array in WordPress
- How do you answer yes for yum install automatically
- What range of MAC addresses can I safely use for my virtual machines?
- 10 servers to administer and I’m a history major [closed]
- What does that mean: packages excluded due to repository priority protections
- How can I set a short timeout with the ping command?
- External api call using wordpress
- Set link dialog to open in blank by default
- plugabble wp_authenticate function not works from wp-login.php
- How to get recent one post from each category on home page?