Skip Navigation

[Resolved] When creating a template for an Archive page, no other blocks can be added.

This thread is resolved. Here is a description of the problem and solution.

Problem:

I am unable to add additional blocks outside of the automatically inserted Toolset View block when creating a new archive template. Any attempt to add a block results in it being overwritten and disappearing, limiting my ability to style the page or include extra content.

Solution:

The Toolset WordPress Archive block must remain the top-level block, but additional blocks can be added inside the WordPress Archive Output section. Alternatively, instead of using the default WordPress Archive, create a new page and add a View block that pulls data from the desired post type, allowing greater flexibility in page design and layout.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 3 replies, has 1 voice.

Last updated by geoffreyM 1 week, 4 days ago.

Assisted by: Christopher Amirian.

Author
Posts
#2793070

This is an internal development site, so I cannot provide a link.

The issue is that when creating a new template for an archive page, Toolset automatically generates the View block. I cannot add any other blocks (outside of the view block). When I try to add a block, there is some automatic update that overwrites and the new block disappears.

This severely limits the ability to style the page or add any other information.

Is there a way to override the automatic insertion of the View block or to allow the page to hold more than a just the Toolset block?

I have created a screen recording that shows the problem...

hidden link

#2793072

Christopher Amirian
Supporter

Languages: English (English )

Hi,

Welcome to Toolset support. That is correct as the WordPress Archive block needs to be the only block available at the top level. But after you finish setting up the WordPress Archive block you will see that you have an option to add blocks inside the WordPress Archive Output block and ther you can add whatever section related blocks that you have with no issues.

Thanks.

#2793075

Hello,

Thank you for the clarification. This is not ideal, as the formatting options available in the Archive Block are limited, so it is problematic to theme the page. For example, I'd like a full-width block (with a background colour) above the archive display (to show some text). However, if I set the Archive Block to full-width, so that the background colour is across the page, there is no easy way to set the content to be anything less that full width.

Am I missing something?

#2793168

Christopher Amirian
Supporter

Languages: English (English )

Hi,

I understand but there is nothing that can be done in this scenario.

An Alternative is to avoid using a normal WordPress Archive and create a page as an archive of the post type.

You can add a view block on that page and select the post type as the source and do exactly the same things you would do on the WordPress archive, with the difference that now, you are able to add whatever you want as the view block does not need to be the top block.

Thanks.

#2794061

Thanks. I can see how to address my issue with your advice.