Coding a basic template


show more Coding a basic template provides you with in-depth training on Web. Taught by Joseph Lowery as part of the Dreamweaver and WordPress: Building Sites show less
please wait ...

Coding a basic template

The ability to create custom page templates is one of the key features that makes WordPress suitable for building web sites that are more than just a blog. A basic custom template is almost ridiculously easy to create, and in this video, we'll do just that, as well as customize the content to distinguish the custom page from our default page. Later in this chapter, you'll see how to modify the header, sidebar, and CSS of a custom page template to further set it apart.

But let's start with the core page first. So now I'm going to go to my tpa folder, which is within themes, and open up index.php. We'll use that as my base, starting in Code view. And now I'll move my cursor to the top of the file, click Return, and then enter in a new PHP code block. And then within that PHP code block, enter in a PHP comment in the style of /* */.

Now all I need to add within that comment is a simple name-value pair. The name, actually a name phrase, is the term Template Name, bot...

Coding a basic template
Video duration: 6m 46s 1h 42m Intermediate

Viewers:

Coding a basic template provides you with in-depth training on Web. Taught by Joseph Lowery as part of the Dreamweaver and WordPress: Building Sites

Subject:
Web
Software:
Dreamweaver WordPress
Author:
please wait ...