The Index Template - Module 2-1 - Building a WordPress Classic Theme with Pinegrow
VloĹžit
- Äas pĹidĂĄn 30. 07. 2024
- The index template is one of the only required files in a theme and one of the most important to get right. This video shows us how to create the template, add a main loop, use conditionals, and create template parts for repeated elements.
đNote: Around 9:36, I show you the preview field in the WordPress page settings. This has been superseded by the WordPress Live Preview Function. You can see more about that here: ⢠Introducing Pinegrow L...
𧰠Resources:
⢠Course Playlist: ⢠Building a WordPress C...
⢠Course info and resources on GitHub: github.com/adamslowe/pinegrow...
⢠Download the course files: github.com/adamslowe/pinegrow...
đ§Course Navigation
⢠Module 1 - Prerequisite Information and Project Setup
⢠Module 2 - Creating the Theme Templates
2-1 - The Index Template (You are here!)
2-2 - Header and Footer Template Parts
2-3 - Page, Post, and 404 Templates
⢠Module 3 - Custom Post Types and Custom Blocks
⢠Module 4 - Using JavaScript libraries, making back-to-top buttons, using custom code, and more.
đ My Websites:
⢠adamlowe.io
⢠peakperformancedigital.com
â Connect with Me:
⢠Facebook: / peakperformancedigital
⢠LinkedIn: / adasmshawnlowe
⢠CZcams: / @adamloweio
⢠Twitter: / @adamslowe
âď¸Tools I Use:
⢠WordPress.org: wordpress.org/
⢠Pinegrow Website Editor: pinegrow.com/
â Timestamps:
00:00 - Global colors and typography styles
02:20 - Auto-generated theme.css contents
02:59 - Looking at our pre-built course CSS files
07:45 - Configuring the Index layout
09:14 - Turning the page layout into a WordPress template
10:48 - Defining header & footer areas
12:58 - Adding missing media to the WordPress export
14:28 - Adding the Main WordPress loop
16:37 - Replacing placeholders with WordPress dynamic data
17:19 - Fallback featured image
18:25 - Our first conditional
20:18 - What happens when you click a link?
20:56 - Adding Pagination as a template part
26:14 - Handling page titles
28:40 - Sidebar template part
đNote: I'm not affiliated with Pinegrow in any way. I'm just a happy, paying customer who wants to see the product continue to grow and thrive, and to help build a more active community around it.
I have resumed the tutorial and I am enjoying it.
38:19
It seems that Pinegrow has already included the_archive_title function. Or am I wrong?..
Itâs possible that they snuck it in and I never got the memo. Itâs also equally possible that I have âman eyesâ (as my wife likes to say) and simply never saw it, despite it being right in my face.
@@AdamLoweIO đ