Skip to main content

Core Blocks

Yoko Core adds functionality to some existing core blocks.

Core/LoginLogout Block

Yoko Core adds a few options to the core Login/Logout block to make SSO integration and header customization easier.

Login/Logout Block Yoko Options

  1. Custom Login Text - Set custom Login text when the user is logged out.
  2. Custom Logout Text - Set custom Logout text when the user is logged in.
  3. Login Action Parameter - ADVANCED FUNCTIONALITY!! - This allows for the button to set a custom action paremeter for the login request. Most of our SSO use the same login URL as the main WP Login, but trigger a different login flow based on the action parameter. For example, AMS Connect frequently uses the action=amsc_login parameter to trigger its login flow. To link this login button to it's flow, you would just put amsc_login into the custom action parameter field.
NOTE: The text will not change in the Gutenberg editor for now.

The text will only render differently on the front end of the site.

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.