template

How to Create a Custom Template for your page for your WordPress theme

Date: Posted by: Karthick In: Wordpress

Each page template has a template name, User can choose by editing their page, this option is available at Pages > Add New > Attributes > Template,

So users have options to choose their customized template while creating or editing the page

for example, if you like to create a full-width page for services

  • Create a file in your theme directory,
  • then type the below code to create a custom template for your page, post, or custom post type
/*
Template Name: Full Width
Template Post Type: post, page, custom_post
*/
// Page code here...
image

After creating the file your page, post, and your custom post type page will get your template “Full Width” in the right side document tab.

352 Views

Leave a Reply

Your email address will not be published. Required fields are marked *

Recent Posts

Affiliate Links

Advertisers

Categories

SEO Store

SEO Store

Archives

SEO Store

SEO Store

Tags

Advertisers

Top