Hello There,
It turns out that you added an invalid PHP code:
add_filter('x_option_x_layout_content', 'add_sidebar_learndash',999);
function add_sidebar_learndash($layout) {
if ( 'product' || 'sfwd-courses' || 'sfwd-lessons' || 'sfwd-quiz' || 'sfwd-topic' || 'sfwd-certificates' == get_post_type() ) {
$layout = "content-sidebar";
}
return $layout;
}
The correct one should be:
add_filter('x_option_x_layout_content', 'add_sidebar_learndash',999);
function add_sidebar_learndash($layout) {
if ( 'product' == get_post_type() || 'sfwd-courses' == get_post_type() || 'sfwd-lessons' == get_post_type() || 'sfwd-quiz' == get_post_type() || 'sfwd-topic' == get_post_type() || 'sfwd-certificates' == get_post_type() ) {
$layout = "content-sidebar";
}
return $layout;
}
Please have it updated and test your site again.