Browse Source

Update functions.php

Aurorum 4 years ago
parent
commit
c6ca3efd20
1 changed files with 4 additions and 0 deletions
  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' );