Skip to main content

Posts

Showing posts with the label Page

Guide to Create Custom Page Templates in WordPress

In WordPress, page templates are a specific type of template file that are used for a specific page or group of pages. A page template only applies to pages, not for other content types. The page templates are used to change the look and feel of the pages. If you want to make a page different from other pages, create a custom page template. This tutorial shows you how to create custom page templates that can be assigned to the pages from administrative panel. Custom page template allows you to make the different layout for different pages. Template Hierarchy of Page Templates in WordPress When the browser requests a page, WordPress selects which template will use to render this page. As per the WordPress Template Hierarchy, page template files are looked like the following order. Page Template – WordPress looks for a custom template assigned to the respective page. If found uses it otherwise move to the next hierarchy. page-{slug}.php – If a custom template is not found, Word...