Skip to main content

Core Blocks

Yoko Core adds functionality to some existing core blocks.

Core/Navigation Block

Show Child Pages

The "Show Child Pages" setting on the core/navigation block will replace the whole menu with the child posts of the current page/post. This is useful for micro-sites or complex posts like large events.

Show Child Pages Option on Core Navigation Block

Since all of the navigation links will be replaced by the page children, you can populate this menu in Gutenberg with placeholder menu items so that the template layout looks complete. The first item in the menu will also be used for determining the styles of the child page navigation menu items.;

Options

  1. Show Child Pages - Turning this on will populate this navigation block with the direct children of the rendered page, ordered by menu_order.
  2. Show Parent Page - Turning this on will add a link to the navigation menu to the parent page at the very beginning of the menu.
  3. Parent Page Label - This will be the label of the parent page navigation item. Leave this blank to use the title of the parent page.

Styling

In order to style the block, you can add a custom menu and make all of the configurations you need. As long as this options is set, this block will override that menu with the direct child posts of the displayed post.

The menu item styles will be automatically inherited from the first menu item.

Limitations

As of Yoko Core Version 1.10.0, this feature will only work for top level heirarchical pages and only it's direct descendants. It is not, for example, compatible with grandchildren or Relational Taxonomy children.