• Hi,
    How are you all?
    I try to work with the new Twenty Twenty-Two and I can’t find my legs and hands in it…

    I’m trying to create a new page based on a template I created – But it’s not working.

    Please see here:

    Thanks!
    Ram

Viewing 13 replies - 1 through 13 (of 13 total)
  • I am in a phone so very hard to see, but make sure your Template has a Post Content block on it.

    Generally, my template has a Header, then the Post Content block to show the content blocks you put into that page, then the Footer. Without the Post Content block, it will not post your page/post content… Which kind of makes sense.

    Header Block
    Post Content Block
    Footer Block

    I only figured that out by looking at the template structure of the provided templates.

    You can, of course, do whatever you want with your template:

    Footer Block
    Site Logo Block
    Header Block
    Post Content Block

    Header Block
    Group Block with Image Block for a site-wide banner and a Post Content Block inside
    Footer Block

    Helpful? Hope so.

    • This reply was modified 2 years, 8 months ago by saturn3.
    • This reply was modified 2 years, 8 months ago by saturn3.
    • This reply was modified 2 years, 8 months ago by saturn3.
    Thread Starter Ram Freedman

    (@ramf)

    Hi,
    Thanks!

    So As far as I under stang I need to create a template for each page I want to create and there is no need to add any block via the regular page builder – just to load the relevant template?

    Anything I’m adding directly to the page is not reflected to the page – only what I have in my template.

    Please see here:

    So when creating a page based on a template – there is no need / no way to use the page builder, unless I’m working on a blank template – then I can build everything directly on the page – Right?

    Thanks!
    Ram

    I am sorry but there is no audio and we use different language GUIs, but I am trying hard so please excuse me.

    I am not exactly sure what you are getting at, but you will not see your template while you are constructing the blocks of content for a page until you Preview (Preview in New Tab from the top bar) it in another window. Then the template and your custom CSS and other good stuff get applied in the Preview window that opens up.

    If that is not at all what you meant, then please repost your video with the audio. My language skills just aren’t good enough, sorry!

    Thread Starter Ram Freedman

    (@ramf)

    Hi,
    So sorry it got recorded without a audio.

    Lets me try again.
    I also changed the language in my interface.

    This is the video:

    Thanks for your help!

    I am just halfway through but I can see the trouble you are having and it is addressed in my first response. But I am happy to try another way to think about things.

    Every page on your site needs a template, even if it is a default template for the theme. For example, a very generic web page has a Header section, a Content section, and a Footer section.

    You can create new templates or modify existing ones that came with the theme.

    You can also create two types of “template parts” in the new theme editor: the Header Template Part and the Footer Template Part. Those two types of parts can be inserted into a template (or even a Page, but that would be counterproductive so don’t!). You use a Header or Footer block and then you can choose an existing header or footer template part to insert.

    But this is the KEY part: you also have to tell a template that you want to show the content you put into your pages. It won’t do it unless it has the Post Content block.

    So, a very generic template can be created with just three blocks. I will call it GenericTemp:

    Header Block
    Post Content Block
    Footer Block

    Now when you go to build or edit a page, you will only be working with the blocks and components that make up what will eventually be used by this template that’s named GenericTemp to fill out its Post Content Block. You will not see the Header or Footer that you designated in GenericTemp untill you preview the page.

    Again, in the Page editor/creator/builder, you only see that page’s content, and you will not see anything that is on any template applied to that page until you preview it.

    While you are in the Page editor/creator/builder, you are generating the list of blocks that will eventually fill out the Post Content block found on a template…

    But you are having the issue that you deleted this Post Content block from the template applied to your page. So anything added to the Page in the Page editor/creator/builder will never show up once the page is rendered for viewing the because the template no longer has a block that tells it where to put the Page content… Again, you deleted it or never added it.

    The page that you preview (and is eventually seen by visitors) is generated by WordPress starting with the template applied to a given page. It starts to create the page in a block-by-block series. With my GenericTemp, WordPress starts with the header I designated on the template via its Header block, then it inserts all the “stuff” on the page (like a Home Page or Testimonials page or whatever page) because of my Post Content block, and then the Footer block on the template tells it to add on the Footer I designated.

    And a webpage is born!

    So all those blocks you put on your template page that look so nice should be moved to a page (I am guessing it’s your Home Page). It is Page content as it only appears on that page. Then let your template be just what I mentioned above:

    Header Block
    Post Content Block
    Footer Block

    I can help you move all your content because you can’t copy and paste it between pages or templates. But let’s see if this template vs. page stuff makes more sense for you first, yes?

    • This reply was modified 2 years, 8 months ago by saturn3.
    • This reply was modified 2 years, 8 months ago by saturn3.
    • This reply was modified 2 years, 8 months ago by saturn3.
    • This reply was modified 2 years, 8 months ago by saturn3.
    • This reply was modified 2 years, 8 months ago by saturn3.
    • This reply was modified 2 years, 8 months ago by saturn3.
    • This reply was modified 2 years, 8 months ago by saturn3.
    • This reply was modified 2 years, 8 months ago by saturn3.
    • This reply was modified 2 years, 8 months ago by saturn3.
    • This reply was modified 2 years, 8 months ago by saturn3.

    One more thing, templates here in WordPress 5.9 FSE are not like, say, InDesign. You aren’t creating empty boxes on a template that then get filled in on a page like in DTP.

    In WordPress, if you want the same Corporate Identity image at the top of every page using “TemplateX” as a template, then put that image directly on the template with an Image Block. It’s now “welded” to the top of the page but you can only see it when a page using that template is generated for viewers. You won’t see it in the Page editor/creator/builder until you Preview it or serve it to an end user.

    Got an updated logo and need to swap out that Corporate Identity image globally? You can replace the entire image site-wide by going to just TemplateX and selecting a new image there.

    Now ignore all that and let’s say you want a different image on each page that uses TemplateX. Do not put an empty image block on this template and expect to see it when you go to edit a page that will be using TemplateX.

    It’s not like that. For one thing, empty image blocks are ignored. But more importantly, you will not suddenly see an empty image block for you to fill in when you pull up a page in the Page Editor that uses this TemplateX template. It doesn’t work like that.

    You won’t see template elements on a page while you are in the Page Editor even if that page is supposed to use that template until the page is previewed or viewed by the end user.

    If you want a different image at the top of every page (please ignore Featured Images for now), you have to open each page manually, insert an image block manually, and then choose the specific image for that specific page.

    Helping?

    • This reply was modified 2 years, 8 months ago by saturn3.
    • This reply was modified 2 years, 8 months ago by saturn3.
    • This reply was modified 2 years, 8 months ago by saturn3.
    • This reply was modified 2 years, 8 months ago by saturn3.
    • This reply was modified 2 years, 8 months ago by saturn3.
    • This reply was modified 2 years, 8 months ago by saturn3.
    • This reply was modified 2 years, 8 months ago by saturn3.
    • This reply was modified 2 years, 8 months ago by saturn3.
    • This reply was modified 2 years, 8 months ago by saturn3.
    • This reply was modified 2 years, 8 months ago by saturn3.
    • This reply was modified 2 years, 8 months ago by saturn3.
    • This reply was modified 2 years, 8 months ago by saturn3.
    Thread Starter Ram Freedman

    (@ramf)

    Dear @saturn3 – Thanks for the perfect explanation!!
    You are the best!

    You mentioned that there is a way to move all the stupp I created as a template and convert it to a regular page?

    Thanks!
    Ram

    Took me a long time to get it. No real world use manual!

    Not then, you cannot copy and paste between pages. So use Reusable Blocks.

    1-Put everything you want to move into a new group block. Groups cam be tricky in the GUI because things don’t drop right where you want when you move groups and columns inside groups. If you have trouble, I fill the group with a bunch of Separator Blocks. Then it is easy to put things just where you want and delete the separators. You can also make use of the up and down arrows on the toolbar to move blocks up and down the list. However, you cannot use the arrows to move items into a group. It’s… not fun.

    Anyway, put everything into a group. I save at this point because it’s eventually easier to delete this group. But it’s not time to delete it yet.

    2-Convert the group into a reusable block. Right click (I am on Windows) on the group and you can do this through the contextual menu.

    3-Go to the page where you want to “paste” the blocks. Insert your new reusable block (you can probably figure that out but let me know).

    4-Right click again for the contextual menu and convert to regular group.

    5-Move everything out of the group. Again, the GUI makes this so fun! Delete the now emptied group block from this page. Save the page!!

    6-Now you could go back and delete that group from the original template/page. You probably should in this case.

    7-Go to Manage Contextual Blocks (not hard to find but let me know). You can delete it from your list if you want.

    Better than rebuilding!

    Make sense?

    Thread Starter Ram Freedman

    (@ramf)

    Thanks!
    I will give it a go.
    Thank you so much for your help!

    Thread Starter Ram Freedman

    (@ramf)

    Hi again,
    I have to say that adding stuff to an existing empty row or group is horrible!

    [email protected]

    (@sitodemmersgmailcom)

    Please also see under the template dropdown, in the page editor, you see ‘edit’ and ‘new’… so click ‘new’ and create it instandly…
    Hope this simplifies thimgs.

    I have to say that adding stuff to an existing empty row or group is horrible!

    This is why I find the design of the block list GUI is not just cruel… it’s diabolical!

    Seriously, I have a resuable part that is just a group with 10 separators inside for just this reason.

    Want to add a new block? Spin the wheel and let’s see where in the list your new block lands!

    It’s fun!

    Thread Starter Ram Freedman

    (@ramf)

    It’s fun!

    ??

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘I can’t figure out how to create a new page based on a template I created’ is closed to new replies.