-
Author
-
August 5, 2016 at 09:54 #131452
alkross
ParticipantI create some Custom Post Type with CPT UI plugin. All works fine, but how can I apply the Kleo features as Kleo Theme General  settings, post layout or Mail Menu options?
August 22, 2016 at 18:33 #133400Radu
ModeratorHi, To can benefit for all theme features just replace the metaboxes.php form wp-content/themes/kleo/lib/ with the attached file after you unzip it. This will be implemented in the next theme update. Then you should add these functions in the wp-content/themes/kleo-child/functions.php// Add Theme Settings to CPT // // Replace superpost with your CPT slug // function my_cpt_sq_metabox_general_settings($post_types) { $post_types[] = 'superpost'; $post_types[] = 'superpost2'; return $post_types; } add_filter('sq_metabox_general_settings', 'my_cpt_sq_metabox_general_settings'); // Add post layout settings to CPT // Replace superpost with your CPT slug function my_cpt_sq_metabox_post_layout($post_types) { $post_types[] = 'superpost'; $post_types[] = 'superpost2'; return $post_types; } add_filter('sq_metabox_post_layout', 'my_cpt_sq_metabox_post_layout');Replace superpost with your custom post type... also if you want to add to multiple cpt replace superpost2 with the your cpt slug. Cheers R. -
AuthorPosts
Viewing 16 posts - 1 through 16 (of 16 total)
The forum ‘General questions’ is closed to new topics and replies.