The parts of a PocoCMS theme

You've learned that you can change themes easily, and that they can have dramatically different appearances:

Theme: Informer

Screenshot of PocoCMS Informer theme

Theme: Electro

Screenshot of PocoCMS Electro theme

Theme: Base

Screenshot of PocoCMS Base theme

Header, nav, article, aside, and footer

As the MDN web docs observe in Document and website structure these are the main parts of an HTML document:

Anatomy

This illustration shows these parts of the document using a typical PocoCMS theme:

Illustration showing header, nav, article, aside, and footer

Layout elements

You will see these parts of the page referred to as layout elements. Keep these two things in mind about layout elements.

For a slightly more technical perspective see HTML layout elements in more detail.

Themes made with the PocoCMS theme framework let you decide on a page-by-page basis whether you want to display these layout elements.

Hide the header

Let's go back to the brief example file we've been using. Make sure index.md looks like this:

---
title: "Powered with ♥ by PocoCMS"
pagetheme: informer
hide: header
---
# Welcome to mysite

Hello from https://example.com. Our site is changing quickly.
poco 

Screen shot of Informer theme with header suppressed

Hide the nav

Let's go back to the brief example file we've been using. Make sure index.md looks like this:

---
title: "Powered with ♥ by PocoCMS"
pagetheme: informer
hide: header, nav
---
# Welcome to mysite

Hello from https://example.com. Our site is changing quickly.
poco 

Screen shot of Informer theme with header and nav suppressed

Hide the rest

You see where this is going:

---
title: "Powered with ♥ by PocoCMS"
pagetheme: informer
hide: header, nav, aside, footer
---
# Welcome to mysite

Hello from https://example.com. Our site is changing quickly.
poco 

Screen shot of Informer theme with header, nav, aside, and footer suppressed

A lot of themes look good this way, just the bare naked article. It definitely focuses the reader's attention.

Wait, so...?

You nut. Yes, you can suppress the article too. It's sometimes helpful when working on problems with the look of a theme you're creating.

---
title: "Powered with ♥ by PocoCMS"
pagetheme: informer
hide: header, nav, article, aside, footer 
---
# Welcome to mysite

Hello from https://example.com. Our site is changing quickly.
poco 

Screen shot of Informer theme with EVERYTHING suppressed

Change sidebar direction

One super handy featgure of themes created using the PocoCMS theme framework is that you can normally choose which side of the page an aside appears on. Just add sidebar: left or sidebar: right to the front matter. Note in the previous images that the aside defaults to the right for the Informer theme. You can change the side it appears on any page by adding this to the page front matter:

---
pagetheme: informer
sidebar: left
---
# Welcome to mysite

Hello from https://example.com. Our site is changing quickly.

Et voilà:

Screenshot of Informer theme with aside on left

Previous: Changing the theme Next: Hiding parts of a PocoCMS theme globally