Skip to content

About Themes and Layout when developping a new theme #1885

Answered by ArnaudLigny
happytodev asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @happytodev, you must see a theme as "default" layouts (and assets) used to render pages. So, you don't need local layouts, unless you want to override a theme layouts.

In your example you should have:

  • themes/<theme>/layouts/blog/page.html.twig is used to render blog posts
  • layouts/blog/page.html.twig if you want to replace the theme blog/post layout, otherwise it's not needed

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@happytodev
Comment options

@ArnaudLigny
Comment options

Answer selected by happytodev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants