소스 검색

Update functions.php

Aurorum 4 년 전
부모
커밋
c6ca3efd20
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      apostrophe-2/functions.php

+ 4 - 0
apostrophe-2/functions.php

@@ -293,6 +293,10 @@ function apostrophe_2_body_class( $classes ) {
 		$classes[] = 'apostrophe-2-no-sidebar';
 	}
 
+	if ( function_exists( 'jetpack_social_menu' ) && get_theme_mod( 'apostrophe_2_mobile_social' ) == 1 ) {
+		$classes[] = 'show-mobile-social-menu';
+	}
+
 	return $classes;
 }
 add_filter( 'body_class', 'apostrophe_2_body_class' );