Skip to content
Docs

Add theme metaboxes and theme settings metaboxes CPT

If you’d like to enable the ‘Theme Options Panel’ for a custom post type then add the below code your your KLEO child themes functions.php file.

// Add Theme Settings to CPT //
function my_cpt_sq_metabox_general_settings($post_types) {
$post_types[] = 'yourCPTslug';
return $post_types;
}
add_filter('sq_metabox_general_settings', 'my_cpt_sq_metabox_general_settings');

Note: replace yourCPTslug with the slug for your custom post type.

For more information on Custom Post Types see the WordPress Codex https://codex.wordpress.org/Post_Types.

For more information on the KLEO child theme check this support doc https://seventhqueen.com/docs/kleo/introduction-to-the-child-theme/.