How to Build a Custom WordPress Theme from Zero


show more Creating custom product pages provides you with in-depth training on Developer. Taught by Chris Coyier as part of the WordPress 3: Creating and Editing Custom Themes show less
please wait ...

Creating custom product pages

Widget Corp is a company that sells widgets. So there is going to be a bunch of pages on this site that are dedicated to specific products that they sell. So that's what we're looking at here is our design for an individual product page. We just covered custom fields and how we can store this data, like price and product code as custom fields, but we didn't yet cover how to create a custom template to publish and make the page look exactly like this. What we're looking at on screen here is our static HTML and CSS template.

So let's create a special new template in our WordPress theme, which we have opened on right here, and our static HTML and CSS on the left here. I'm going to create a brand new template by right-clicking the project folder here and saying New File. We're going to call it page-product.php. It's going to be a blank file to begin with. So we're creating a brand new template. How do we get WordPress to recognize these new templates? It's...

Creating custom product pages
Video duration: 9m 52s 4h 28m Intermediate

Viewers:

Creating custom product pages provides you with in-depth training on Developer. Taught by Chris Coyier as part of the WordPress 3: Creating and Editing Custom Themes

Subjects:
Developer Web
Software:
WordPress
Author:
please wait ...