Frontity Tutorial
  • 👋Welcome
  • ✔️Checking your progress
  • 1️⃣ Creating a custom theme
    • Create a Frontity Project
    • Create a Theme Package
    • Modify the <Root> component
    • Connect the <Root> component to the state
  • 2️⃣ Adding a menu
    • Use the <Link> component
  • 3️⃣ Displaying posts
    • Understanding the Frontity state
    • Display the list of posts
    • Display the post content
    • Display posts and pages separately
    • Formatting the date
  • 4️⃣ Adding styling
    • Global styles
    • Styled components
    • Styling the links
    • Styling the post info
    • Add dynamic styling
  • 5️⃣ Adding behaviour
    • Use 'state' and 'actions'
    • Add pagination
  • 6️⃣ Custom Post Types
    • Add support for Custom Post Types
  • 7️⃣ Finishing touches
    • Add a <Loading> component
    • Add a 404 page
    • Use the <html2react> component
    • SEO and head tags
    • Other things to do
  • 8️⃣ Deploying the project
    • Deploy to Vercel
  • 9️⃣ Next Steps
    • Learning resources
    • Getting help and support
    • Contributing to Frontity
Powered by GitBook
On this page
  • Learn Frontity step-by-step
  • Welcome to the Frontity step-by-step tutorial

Welcome

NextChecking your progress

Last updated 3 months ago

⚠️ Frontity Framework

The team is now working on . This unblocks the same UX Frontity framework enabled but directly in WordPress Core, fully compatible with the new Site Editor.


Learn Frontity step-by-step

Welcome to the Frontity step-by-step tutorial

Hi, and a very warm welcome to the Frontity step-by-step tutorial. We're thrilled that you're interested in learning Frontity.

The tutorial that you're about to embark on is a progressive sequence of lessons that will take you from first steps to mastery.

Via a practical example project it will provide you with a solid foundation in developing websites with Frontity and give you the knowledge you need to work with Frontity on your own projects. It will also arm you with the concepts and knowledge you need to better understand the other documentation resources:

  • - Introduction, concepts and guides

  • - API Reference

Since this is a progressive tutorial we recommend that you follow the lessons in sequence, as each lesson builds on what was learned earlier.

Prerequisites

Frontity is built on React. You should therefore feel comfortable working with JavaScript, and have at least some familiarity with React and also with ES6.

If you need to get up to speed, or if you need a refresher, there are introductions to the basics of both and in the documentation. If you've worked through those guides, or if you're already comfortable with the concepts explained there, then you're good to go. 👌

An understanding of HTML and CSS is also assumed, as is a familiarity with the command line.

You will need to have installed on your development machine. You will, of course, also need a web browser and a code editor/IDE.

No previous knowledge or understanding of Frontity is required. This step-by-step tutorial starts you off with the very basics.

The project

Our project for this step-by-step tutorial will be to build a fully working Frontity theme, starting from scratch.

One of these could well fit your needs, but the best way to really gain an understanding of Frontity and how it works is to build your own theme.

We'll start at ground level by installing Frontity, then go on to create a theme package which we will then develop into a fully working and functional theme.

Along the way we'll cover a number of different topics, from listing posts, to displaying posts and pages, to styling our project and adding interactivity. We'll even make our project SEO friendly, refine it with some finishing touches, and make it work with Custom Post Types.

We will be there by your side guiding you through every step, right through to ultimately deploying our finished project to a live server.

By the end of this tutorial you'll be a Frontity ninja! 🥷

Let's go! 👉

Frontity provides two themes to get you started, mars-theme and twentytwenty, and there are a host of third party themes on that you can install into your Frontity project.

👀 We'd really like you to see the project develop as you progress through the tutorial, so we're certainly not encouraging you to do this, but if you really do want to take a sneak peak at the finished project the final version can be seen in .

👋
is not under active development anymore.
the WordPress Interactivity API
docs.frontity.org
api.frontity.org
JavaScript
React
node.js
npmjs.com
this CodeSandbox