浏览代码

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' );