Because the naming convention is matter. You can create a new template for your different page and name it “page.php” and on the header portion give it a name:
<?php
/**
* Template name: Different page tempate
*/
get_header(); ?>
<div class="yourclass">
<!-- Your different template code should go here -->
</div>
<?php
get_footer();
Once you are done then go to Pages>Add New & on the right sidebar you will see the new template name under “Template” dropdown. Select it as your new page template and publish.
Related Posts:
- Why is wp_head() creating a top margin at the top of my theme header?
- How To Add New Option Types To Option Tree?
- How to limit wordpress menu depth in admin panel
- How can I set image sizes and still have responsive images using the srcset attribute?
- Possible to “Attach” images to multiple posts without inserting or uploading twice?
- Trigger Customizer saving process with Javascript only
- Remove settings if theme is deleted?
- Comment form not display properly?
- How to add menu support to a theme?
- Adding widgets programatically: how to avoid collisions?
- Moving functionality from functions.php to classes?
- Registering Sidebars and Sidebar Widgets. Sidebar Widgets Not Displaying
- How do I get a parent theme modification from a child theme?
- Extend walker – navigation, adding data attribute to a tag
- How to display category specific post content on a page
- Is there any need to use both wp_reset_postdata and wp_reset_query together?
- Enqueued Stylesheets Effecting Admin Styles
- Gutenberg Reusable Block as part of WordPress Theme page
- Why is $GLOBALS[‘content_width’] needed if site is responsive?
- Does WordPress count as a means to learn web development? [closed]
- current-menu-item class not working
- Prevent theme from activating [duplicate]
- Messing up with transient API – getting flushed on refresh
- Correctly using wp_head()
- Theme development question regarding layouts
- Cannot figure out how to overwrite files in child theme
- Using wp_tag_cloud(‘format=array’) to print tag names without links?
- Inheritance of parent theme plugin files in a child theme
- My Admin bar covers my sticky navbar [closed]
- Responsive embed for the video shortcode
- Access theme options in templates
- How to show post from category select
- Implementing FancyBox
- Single Page Design, Storing in Theme Options
- How to append to menu items selectively
- Working with a WP Starter theme
- Should I change text-domain of TGM library inside theme?
- tag is being auto inserted
- “Bad element for masonry: undefined” why this error us occuring? [closed]
- Scroll to position on page for category pages only — woocommerce
- How remove render blocking css from wordpress when you build a theme?
- How to: JQuery multiple wordpress media uploader buttons in the same options page?
- Displaying details of a post in a sidebar
- How to upload/update theme from local – bitbucket – shared hosting?
- Multi-page posts: A subdirectory for each post?
- Remove “You are using WordPress 3.2.1” from Right Now Dashboard Widget
- How do I get the trackback count of a post in wordpress without writing an SQL query?
- Load sidebar template just once to prevent multiple animations
- Call to require(‘../../../wp-blog-header.php’) results in 404 error?
- Where do files uploaded via Media Manager get stored in MU?
- Change frontpage content via WordPress
- How to Have a Pure HTML Sub Directory In WP Site
- How to add menù section to my WordPress template?
- What are the critical theme files when building a custom theme?
- customize theme with get_template_part() [closed]
- Loading issue on Chrome for my WordPress theme
- How to style bootstrap container in wordpress theme?
- Wamp Server error on running wordpress theme on localhost. How do I fix this error? [closed]
- Shortcodes do not work in own template
- Adding Bootstrap to WordPress TwentySixteen Theme
- $_POSTing to and modifying the WP search results page
- Confused by the behaviour of “front page” / “home” templates
- Following/tracing page construction through theme PHP
- How to Grab first Image from some Chosen Categories
- Get themes’s images path in WordPress Multisite
- Get video from the post on homepage
- altering search terms
- Creating a theme update notification api [duplicate]
- Custom menu: Link names
- WordPress Themes Directory: Template which hits the standards?
- Inconsistent bloginfo information
- get_the_terms() returning wrong results inside of loop
- get_avatar() is not working in my custom theme
- How to diagnose wp-env environment problem
- When I save changes for css and js in my WP localhost env windows 10 the changes don’t take effects immediately!
- Updatable theme developing
- makeing a terms of use page that is part of the theme
- How to make menus, footer, sidebars multi language
- Unable to delete option
- Different templates for each category level
- Child theme in separate WordPress Install
- Display problems in admin dashboard when creating a new theme from scratch
- Hook in parent theme Menu function
- Using Customizer value in an external PHP file inside a theme
- How to add drop symbol to parent nav items which have child
- How to avoid Ajax in wordpress theme in making mulitple request?
- Import from HubSpot COS into WordPress 4?
- WordPress 3.5 + Foundation 5 not working on IE9
- Any disadvandages if I style the wordpress align classes without img and .wp-caption prefix
- Using wp_enqueue_script with social media buttons?
- Want to include ad code after related post
- How can disable function wp_link_dialog()
- Pagination adds product to cart Woo-Commerce
- Onepage with shortcodes
- Allowed memory size of (…) exhausted
- Twenty sixteen – full height
- Configuring static page with add_rewrite_rule gives 404 after navigating to Permalinks admin panel
- How to Enable Hot Module Replacement with Webpack
- custom wordpress theme blog page always not showing the last two pages of the articles
- Cart button not working on mobile version [closed]