bobbingwide / thisis

ThisIs ... experimental Full Site Editing theme
GNU General Public License v3.0
1 stars 0 forks source link

Add some custom templates #14

Open bobbingwide opened 3 years ago

bobbingwide commented 3 years ago

Certain pages and posts need to support the ability to display content full width. Others need to display a tall featured image to the left of the main content and I also need to be able to demonstrate other custom templates

Here's how WordPress searches for a template for the "page" post type.

Template name format Example template name Sample Usage
$custom featured-image-left navigation-component Use for a tall narrow featured image
page-$slug page-template-hierarchy template-hierarchy Use for a full width featured image
page-$ID page-2 page-2 Demonstrate page template matching ID
page page Any other page
singular singular Any other single content eg custom post type
index index
bobbingwide commented 3 years ago

and I also need to be able to demonstrate other custom templates

Such as the output-input template implemented in Fizzie to demonstrate a method of debugging template parts and/or post content.

bobbingwide commented 3 years ago

Here's an interesting side-effect of the custom CSS in the output-input custom template part. Notice all the dotted red borders. Perhaps the CSS needs to be made a little more specific.

image