Hello,
You can easily add the theme’s default meta layout option by creating a child theme first, then on your child theme’s function.php you can add the following given code.
function education_hub_add_theme_meta_box() {
$apply_metabox_post_types = array( 'post', 'page', 'test' );
foreach ( $apply_metabox_post_types as $key => $type ) {
add_meta_box(
'theme-settings',
esc_html__( 'Theme Settings', 'education-hub' ),
'education_hub_render_theme_settings_metabox',
$type
);
}
}
You can see a value called “test” on the second line of the code. Replace the value with your custom post’s slug that you have made.
Then the meta box will appear on the bottom of your Dashboard => “your custom post type” => “Add/edit your custom post type”. Then you can assign a layout for each one of your custom post type.
That should do it.
If your question has been answered, we would love if you would mark this topic as resolved in the right hand sidebar. This helps our volunteers find the topics that still need attention and more people will get helped, possibly like you did.