Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add some custom templates #14

Open
bobbingwide opened this issue Apr 30, 2021 · 2 comments
Open

Add some custom templates #14

bobbingwide opened this issue Apr 30, 2021 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@bobbingwide
Copy link
Owner

bobbingwide commented Apr 30, 2021

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 bobbingwide added the enhancement New feature or request label Apr 30, 2021
@bobbingwide bobbingwide self-assigned this Apr 30, 2021
@bobbingwide bobbingwide changed the title Add a full width custom template Add some custom templates May 5, 2021
bobbingwide added a commit that referenced this issue May 5, 2021
@bobbingwide
Copy link
Owner Author

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
Copy link
Owner Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant