good morning today I'm going to show you how you can avoid making the biggest mistake that I see many beginners using when they start using Wordpress block themes [Music] and the big mistake is putting content into your page templates themselves into the site editor now certain themes start you with some starter content that they put in the site editor but they only do this to make it easier for you to see something when you start viewing the site spectra1 is an example of this also the ollie theme do it and they do it for good
reason because when you first install the site you see something and it looks kind of cool but if you keep your content in there it means you can't edit it very easily it'll confuse you because some of your content will be in pages and some of your content will actually be in the site editor ideally we want no content in the site editor we want all our content in pages and posts there's also another really massive issue which is if you're not an admin you can't actually access the site editor in the first place so
you can't actually get to the content that you want to edit so let's go under the hood and see how this has actually been built I'm also going to tell you how I personally recommend you deal with this situation to fix things so here we go and you'll see currently this is the the home page of my website because this is currently using the homepage template now the home page template which is this one here actually serves two purposes it's either the home page of your website if you haven't set a home page in Reading
settings or if you have set a Blog Page in your reading settings which I'll show you in a second this will actually be your blog page so if I go and set a Blog Page now a post page in Reading settings this page here will actually be my blog and before you start shouting at me that block themes are rubbish this is actually a WordPress issue and block themes just inherit the template hierarchy that we use in classic themes and this is block themes way of kind of working with it let me quickly show you
what I mean by this and show you the issue so if I go to settings and reading and I come to here and then instead of showing the latest posts I'm going to choose my home page I've actually created a blank page called Home in here I've also created a postcode blog and if I set that blog page now as my post page you'll see when I come to it it's actually showing that home page template so this is how I would fix this situation I'll jump back into the site editor because I think probably
95 of the sites I'm building these days probably have a static home page and also a Blog Page I'll come to the templates come to home here and you'll see this currently is now showing my home page content but actually that's my blog page so I'd come here to the list View and I'll just remove all these blocks here very simply like that and I'm going to replace them essentially by using a query Loop pattern so in here you'll see we've got different options and I'm going to choose the layout I want just add that
option there and you'll see now that it's just using the query loop block now I can customize this page any way I like but this is now going to be my blog page so if I click save let's go and check that out go back to the website click on blog and there we go there's my blog page looking much much like a Blog Page should be let's go and have a look at the site editor and now we've got this nice clear separation and the other thing I've done here you'll see this current page
here this is now my home page but again the mistake would be to put your content into this page because this page is actually now a static page which I've created so don't put your content within this page you'll see when I go on the list view here this is actually just made up of a post title and also post content which is those theme blocks which are bringing in content from that home page now you might also be sitting there thinking well that's great but now my home page kind of looks like every other
page which is got this page title up here the same as my other pages but actually on my home page I want a completely different layer I don't want this home page title and I might want a nice full width cover image here now again the mistake would be to put that right within the site editor it'll be very tempting for you to do that because you're going to go edit site and you'll actually see your home page coming in here and you'll click in here and you'll start adding content don't add content don't add
content into the site editor and the other thing to avoid at this point at all costs is to jump in here and start editing this page template because this is the page template for all your pages so if you edit this here even though you think you might be editing the front page you're actually editing all the page templates on your site so if I deleted the page Title Here I wouldn't have a paste title on all of my websites so this is the next step so what you do is you go back to the
site editor and then you're gonna ignore this first screen don't edit this content come to templates and you'll see this little plus sign up here that lets us create a brand new template and luckily for us there's a brand new template option here that says front page so this whatever we put in here is going to be the front page of our site but we're not going to put any content in here so it's actually going to load our latest posts but we're going to delete all of those to start with and then literally all
I'm going to do in its place I'm going to add a group block don't put content in a group block and within that group block I'm just going to put the post content block and all that's saying is right on the home page for the front page of my website whatever page is set in Reading settings this is the design of that page now I'm not taking much time over this but essentially this post content block will just grab any content from that front page that's been set in Reading settings and style it like so
can you see it's up like that and now I have this perfect separation of design from content which is what we want that's the whole point about WordPress and you'll see I can edit this page as just a normal page so if I can jump in here and I can recreate this page however I like to choose that option there and we can update that go and view the site and now we have a lovely looking home page of course we can edit everything about it and we can go on to blog and that's now
being populated by our posts but none of the content is actually in the site editor if we go back to edit site even though it might look like it's in the site editor if we click on the list view we can see it's actually just bringing in content dynamically [Music] foreign so a quick recap feel free to pause at this point and take a screenshot don't ever put content as in page or post content in the site editor number two First Step create two new pages your home page and your blog or post page and
set in Reading settings as you normally would when you're building a WordPress website step three edit your home page template in the site Editor to create your blog page because remember you set that as your blog page in Reading settings so that the homepage template will now be your blog page so you need to change it number four go to your templates and create a new page template a new front page template and design your front page but again don't put content in that front page template it's a template you just want to bring in
the theme blocks that will dynamically bring in your content from the actual page itself so this might feel really a bit confusing but once you kind of get your head around the way this is working it does kind of make sense I know that certain people are trying to make this easier to understand I was speaking to Mike from Ollie yesterday the ollie theme and he definitely looking at this and thinking of inventive ways to solve it so I hope that cleared a few questions up for you if you do have any other questions please
do leave them in the comments below anything at all to do with block themes I'd love to hear from you I hope you found this one useful if you did if you can hit the like button down below right now it would be amazing because it makes a huge difference to how YouTube shares the video around YouTube and it makes a huge difference to how many views it gets so thank you if you can hit that like button right now and also every time you do hit that like button I can't get a little treat
[Music] thank you [Laughter] if you want to see more videos like this hit that subscribe button and you'll be notified every time I release a new one keep well and I'll see you soon bye for now