• Full Site Editing: Templates!

    Okay, as promised, this is one of the many from Full Site Editing series, excitedly coming to your nearest WordPress site in January for WordPress 5.9.

    I’m writing this because I personally feel FSE is something super major on WordPress and some of you might quite unsure on what it’s all about or maybe slightly weirded out about the whole thing (“we even haven’t recovered from Gutenberg/Block Editor, and now this?”)

    I hope this blog post/post series on FSE can help you to feel a bit at ease and give you a little boost of confidence to explore.

    Even though it’s really tempting to jump directly to Full Site Editing (FSE), I really want to cover WordPress and template — specifically: What is template?

    For this question, we need to look to WordPress Core — the software — or, as folks usually refer to: WordPress.org.

    WordPress is actually a software. A CMS: Content Management System. A software for folks to manage their website contents — creating a post or a page, categorize it, tag it, publish it, delete it, and so on. Aside from WordPress, there are other CMS softwares such as Joomla, Drupal, and many more.

    WordPress relies on themes. If there is no active theme on the website, you can expect to see WSOD (White Screen of Death)/blank page on your website. Inside the themes, there are: Templates.

    Template is a file that defines how a certain page displayed. In general, WordPress websites have the following templates:

    • single.php — a single post template, a.k.a. a template for a single blog post, for example, this one: https://corianderinpho.com/2021/12/16/state-of-the-word-2021/ — that link refers to a single blog post.
    • page.php — a single page template, a.k.a. a template for a, well, page. For example, this one: https://corianderinpho.com/works/
    • 404.php — a template for page 404/a page that only visible when you are looking for something that not exists on the website/Not Found page.
    • archive.php — a template for archive page. What is an archive page? Archive page is a page that generated to display a list of posts or pages based from category, tag, author, date, month, or post type. For example, this one: https://corianderinpho.com/category/inktober/ — That is the archive page for posts under category “Inktober”. This page, however: https://corianderinpho.com/archives/ — is a regular page titled “Archives”
    • … And many more. You can even create new templates if you want.

    There are some additional elements and we called it Templates Parts. Not exactly a template as a whole, but a template for a specific area on another template.

    These two are the most prominents:

    • header.php, and…
    • footer.php

    “Wait. What? Why?”

    Here’s the thing about WordPress and templates: You can create as many templates as you want, and you might find yourself typing the same code over and over again. For example, you want to create 10 templates for your theme: Page without title, page without sidebar, and so on. Imagine how tedious it can be to type the same code for the header area (the site title and the navigation menu) for ten times and more.

    This is where Template Parts come into play. For example, you are creating a template specifically for a page named, say, page-without-page-title.php and instead of typing the same code again and again for the header area, you only need to type:

    And what the get header(); will do is pulling everything from header.php to be displayed on the page-without-page-title.php template.

    You only need to design a template specifically for the header area, and any changes on header.php will affect all templates pulling header.php on its file. The same goes with footer.php — and other elements. For example, sidebar.php (yes, you can create one) and you can use sidebar.php on another template file. If you found yourself using a certain design over and over again on your theme, you can consider using template parts.

    For example, these are the templates for theme Twenty Nineteen:

    The PHP files in the red boxes are template files. Twenty Nineteen is one of the basic/starter templates so the templates are not a lot — but you can check some more advanced themes and you can find a lot more templates.

    For example, single.php template. How a single blog post looks like on theme Twenty Nineteen is different from the blog post on theme Twenty Twenty.

    This is how a blog post looks like on theme Twenty Nineteen:

    … And this is how it looks like on theme Twenty Twenty.

    Notice the differences, the colors, the text placement, and even how the featured image is displayed. Those elements are defined using templates. This is why some themes have sidebar, and some didn’t. All boils down to templates.

    “Okay. What it’s gotta do with Full Site Editing? Templates look really techie, I don’t know what PHP files are, and I’m not comfortable in tinkering with codes!”

    Now this is where FSE coming into — and why I’m mega excited about it:

    With FSE, you don’t have to have knowledge in coding on PHP language to create and edit your templates (and if you do have knowledge and comfort on doing PHP programming, that’s equally awesome!)

    With FSE, you can create your own template and edit the existing ones. You might notice the “Side Editor (Beta)” tab on your WordPress.com dashboard — and yep! That’s FSE!

    Please note, though, FSE is still really really new (it’s still in beta version) and you might find something not working or acting quite funky (I definitely had those moments!) If you do find something not quite right/not working as expected, or maybe you want to have a gut check with us, feel free to ring us up on e-mail help@wordpress.com or reach out to us on live chat (24 hours, Monday – Friday for Personal plan and Premium plan, Monday – Sunday for Business plan and eCommerce plan) here: https://wordpress.com/help/contact/

    I hope this helps a bit on sharing what template is all about! Our next post will be Introduction to FSE (… and, uhhh, I can’t promise you when I will publish it. I promise it will be before the New Year ?)

    Still confused about templates? I’m confused too! Check out the next post, still talking about WordPress template with pictures: Full Site Editing: Templates! With Pictures!

  • The Roost Time

    I wrote about this on my work’s weekly update a couple of weeks ago, and I’m thinking I can blog about it here too.

    In Animal Crossing game, there is a character named Brewster, a green pigeon, who’s running a café titled “The Roost”. This character and the café were finally introduced to Animal Crossing: New Horizons (we have a lot of Animal Crossing games out there) on its major update back in early November 2021.

    There is this… reward-system in Animal Crossing called “Nook Miles”. When you finished a task, you will be rewarded some amount of Nook Miles — and you can use Nook Miles to buy decorations or visit treasure/resources islands on the game. One of the tasks is: “Break time at The Roost” — meaning that you go to The Roost and order a cup of coffee from Brewster.

    One day, I played this game before bedtime, and since I got pressed with time (I have to finish digging dinosaur fossils and get them assessed so I can sell it for a nice sum of money at the store, and the store closed at 10 PM) I ran around the island to collect everything and cleaning out every fallen tree branch or pulled some wild weeds on the island.

    It’s just a game…

    Yes, and I found myself exhausted when I finished selling the dinosaur fossils. I decided to go to The Roost and to get my digital cup of coffee.

    This is not making any sense, yes, I know, and nothing makes any sense, so please bear with me ?

    (I once refused to have my character swimming in the ocean during last year’s winter because “IT’S SNOWING OUT THERE! IT’S COLD!” regardless of the fact that it’s a game.)

    When I visited The Roost, I just realized how calm and chill the environment is. It’s really quiet, with only Brewster around (sometimes you can find other villagers on the café too, but not always,) and some instrumental piano song plays softly.

    I sat down, ordered a cup of coffee (200 bells per cup), and enjoyed it.

    Then it hits me.

    I can have my own The Roost time. I can take a break between shifts, between my daily activities, to… I don’t know, a cup of tea, a cup of coffee, a cup of hot chocolate, even a tall glass of cold water. Just for a minute or two; not thinking about stuff.

    This is a marathon, not a sprint.

    And I hope, you have your The Roost time too. To sit down, take a minute to breathe, and know that you are doing really really well.

  • State of the Word 2021

    WordPress has State of the Word 2021 event a couple of days ago on December 14 (my birthday too!) and you can watch the recording here:

    For WordPress veterans, you all might have been hearing the buzz about Full Site Editing. For those of you who just noticed the news about Full Site Editing right now, I promise I will blog about it later (?) I actually have been wanting to write about it with hope that I can help a bit on sharing more information about templates and how you can max up templates using FSE. I personally hyped about FSE and I have been spending quite some time tinkering and doing some testing on my test sites.

    Anyway! I actually thought Matt will have a live streaming from the Antarctica. We heard about him taking a trip to the Antarctica and I feel it would look super cool to see him delivering SOTW speech with penguins around, you know. And I really like penguins.

    “Hello, hello! Welcome–”

    (PENGUIN INTERRUPTING NOISES)

    “I’m Matt–”

    (MORE PENGWEN NOISES. “HUMAN HAS CAMERA. WADDLE TO WAVE AND SAY HI. HELLO HUMAN.“)

    Anyway.

    I got quite surprised I see him appearing in SOTW podium in New York.

    “NO PENGUINS?”

    Yeah. So.

    Lowkey expecting to see some emperor penguins shuffling closer to him and as he delivers his speech we see the penguins starting to center on the camera.

    You know what they say about penguins:

    WE PENGUINS WILL TAKE OVER THE WORLD WIDE WEB.

    (Definitely historically incorrect but we never know because The Antarctica is filled with scientists and I won’t be surprised to see some penguins waddling away with some papers on their beak.)

Nindya’s quick blurbs

  • A month too late, but I just stumbled upon IKEA France’s Tiktok video, hinting a possible collab with Animal Crossing. Unfortunately, no further information about this other than IGN picked up this news when the video was posted.

Latest snap