This topic has 1 reply, 2 voices, and was last updated 8 years by Andrei.

  • Author

    Tagged: ,

  • #71795
     Cecilio
    Participant

    Hi,

    The metaboxes Theme General settings,Theme Post Settings, Header content(optional), Bottom content(optional), Post Layout and Main menu options are missing in Sensei and LearnDash pages (courses, lessons, …).

    A solution is to add
    'sfwd-courses', 'sfwd-lessons', 'sfwd-topic', 'sfwd-quiz', 'sfwd-certificates', 'course', 'lesson', 'question'
    to several lines in lib/metaboxes.php file.

    Regards.

    Attachments:
    You must be logged in to view attached files.
    #94577
     Andrei
    Moderator

    Hi,

    This can be easily achieved using a filter like the following:

    COPY CODE
    
    add_filter( 'kleo_meta_boxes', 'kleo_metaboxes_extra', 11, 1 );
    function kleo_metaboxes_extra( $meta_boxes ){
        foreach($meta_boxes as &$meta_box){
            if($meta_box['id'] == 'general_settings'){
                $meta_box['pages'][] = 'course';
            }
        }
        return $meta_boxes;
    }
    

    Cheers

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 2 posts - 1 through 2 (of 2 total)

The forum ‘Feature requests’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?