Piyush Pujara

Page Templates

Pages are one of WordPress’s built-in Post Types. You’ll probably want most of your website Pages to look about the same. Sometimes, though, you may need a specific Page, or a group of Pages, to display or behave differently. This is easily accomplished with Page Templates.

Selecting a Page Template

Screenshot of Page Attributes module with Template select options pulled down

Your Theme files should include a default page template (named: page.php). Your Theme may also have one or more custom page templates, for instance, to display content in wider columns. Or you may have created a custom template of your own.

Edit Page Screen: You can assign a custom template for any individual Page by using the Template dropdown in the Edit Page screen (part of the Page Attributes module):

  1. Select a Template from the list (e.g., My Custom Page).
  2. Click the Update button (or Save Draft if not yet published).

All Pages Screen: The Quick-Edit…

View original post 363 more words

Advertisements