Changing themes

Recall that we were left with this newly edited page:

Screen shot of edited home page

We can totally remodel this tiny site with one change.

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

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

Things are looking up!

Screenshot of PocoCMS Informer theme

If you're in dark mode, you will see that the theme automatically takes advantage of it:

Screenshot of PocoCMS Informer theme in dark mode

That's because it was made with the PocoCMS theme framework, which has a ton of other advantages, such as automatic mobile support responsive mode, and other traits to be discussed later.

Front matter

By the way, you'll note that you can change how the blog looks by changing things you see in between lines of 3 dashes (---) as shown here:

---
title: "Powered with ♥ by PocoCMS"
pagetheme: informer
---

You will have noticed that it doesn't affect the text of the article. That's because it's technically a separate document called the front matter. You don't need front matter in a PocoCMS file, but you'll find it's a big part of your existence when changing the look and format of your websites. Much more about front matter as lessons progress.

Trying a few more themes

---
title: "Powered with ♥ by PocoCMS"
pagetheme: electro 
---

Screenshot of PocoCMS Electro theme

---
title: "Powered with ♥ by PocoCMS"
pagetheme: base 
---

Screenshot of PocoCMS Base theme

Mobile features

Screenshot of PocoCMS Base theme in mobile form

When the web page gets narrower than 1080 pixels, the theme's aside is hidden to conserve screen real estate. The font size increases somewhat. The 1080px figure is configurable in the .poco/css/mediacolors.css

Hamburger menu

Screenshot of the PocoCMS Base theme with closed burger menu

When the web page gets narrower than 768 pixels, the theme's aside, nav, and footer are hidden to conserve screen real estate. The font size increases. The header is replaced with the burger menu. The 768px figure is configurable in the .poco/css/mediacolors.css and .poco/css/burger.css

Screenshot of the PocoCMS Base theme with burger menu clicked

Previous: Editing the page Next: Parts of a theme