How to create a Custom Page Template WordPress

Something really cool about the WordPress is the way you can create multiple page templates.

What does it mean?

For example you can create a template wich will show the page with no sidebar. Or you can create an other template with two sidebars.

Ok. How?

Easy, you just need to create a file in yout theme folder called template-CustomName



Please notice you need to put this line I pasted above at the very top of the file. This Template Name will show in your admin panel when creating a Page.

Real Example

Here a fully working example of a Full Width page template.

About Ricard Torres

Senior Front-end Software Engineer from Barcelona, Haidong Gumdo Instructor (korean martial art of the sword), street photographer, travel lover, TV addict, Boston Red Sox fan, and privacy advocate.

@ricard_dev @ricard_dev

📝 Blog 🎙 Podcast

One comment

Leave a Reply

Add <code> Some Code </code> by using this tags.