• Hi, I have a fresh install of WP 5.9 with no plugins installed. Revamping our website from scratch. It’s sandboxed so I can’t post a link to it here, but I’m just getting started with learning blocks. Cool stuff. I’ve created custom Header and Footer Template Parts and have updated the Home and Page Templates to add them in. The header and footer display correctly on all pages, but for some reason I can’t get any content to show up between the header and footer no matter what I do. This is not a blog, so I’m not using Posts or commenting at all. Here’s what all the pages look like:
    Screenshot

    I’ve only done one page with a couple of simple blocks to test in the content area, and also tried adding a Pattern so I know it’s something that should work, but nothing shows up, just the header and footer. I’m sure I’m missing something simple but I can’t figure it out. Any help is greatly appreciated.

    • This topic was modified 2 years, 6 months ago by Grafiksman.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Have you edited the right template?

    At top center of the full site editor, there is a drop down menu that allows you to choose between editing different template pages.
    https://i.snipboard.io/RA2qXw.jpg
    https://i.snipboard.io/I5C1yU.jpg

    Were you able to solve your issues?

    If so, it’s a good practice to mark this topic as “Resolved” per forum guidelines.

    You can do this using the “Status” drop-down menu located on the right sidebar of this page.

    In addition, this can help out other users.

    Thanks.

    Thread Starter Grafiksman

    (@grafiksman)

    Steven, apologies for delay responding. I have not resolved. I’ve been out sick and have not had a chance to look at this until now.

    I updated both the Home and Page Templates to add the custom header and footer in. Both look like this in the editor:
    Page Template

    I created a custom page with content (that I think is supposed to show up between the header and footer) that looks like this in the editor:
    Custom Page (editor view)

    When I preview, it loads the header and footer nicely, but no content in between. Maybe I don’t understand how the “Default template” works? Very confused…

    I very much appreciate your helping me out with this.

    Steve

    • This reply was modified 2 years, 6 months ago by Grafiksman.
    • This reply was modified 2 years, 6 months ago by Grafiksman.

    1.)

    I updated both the Home and Page Templates to add the custom header and footer in.

    I created a custom page with content (that I think is supposed to show up between the header and footer)

    You seem to have a misconception.

    I.) The Home page can be based on the Home Template only (i.e. anything that doesn’t show up in your Home Template, static or dynamic content, won’t show up on your Home page). You edit the Home page by going to WP-Admin -> Apperance -> Editor and make sure the top bar say “Home”.

    II.) A Page (regular) can be based on any Page template you choose. You edit a Page by going to WP-Admin -> Page. Then to choose a Page template to base your page on, choose from the right side bar.

    The header and footer does not come from the Home Template, they’re typically created with Template Parts and included on Home Template and a default Page Template, which themes typically include by default.

    So, to add content between the header and footer of the Home page, you’ll need to edit the Home Template directly ( point I.) above ) and add content to the content portion of the Home Template, not by editing another custom page.

    2.)
    As your site currently displays, you seemed to have solved this problem.

    Thread Starter Grafiksman

    (@grafiksman)

    Steve, thanks for the information. I’m on another deadline but will get back to this by weeks end and let you know. I’m not sure what you mean by “seemed to have solved the problem” as nothing is solved as far as I can see. I’ll report back, but thanks again for your help, and I will definitely mark it solved when it’s done.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Page Content No Showing – WordPress 5.9’ is closed to new replies.