• I have added custom types with the help of CPT UI plugin.

    When I edit or create a new item of custom type, I cannot see the layout box for Genbu theme.

    I understand that some add theme support has to be done.

    Any help ?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author turtlepod

    (@turtlepod)

    I have never use CPT UI.

    but, the layout meta box is added to all public post type and the post type need to be added via init hook (priority > 6).

    you can add layout support to a post type using:

    add_post_type_support( $your_post_type, 'theme-layouts' );

    the file / functions handling this functionality is available in:
    library/extensions/theme-layouts.php

    the layout configuration is added via add_theme_support( 'theme-layouts' ); in theme functions.php

    Thread Starter ezhikorn

    (@ezhikorn)

    Thank you, the add_post_type_support() in the child theme function.php did it well!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘layout box for custom types’ is closed to new replies.