瀏覽代碼

FSE: add fse theme support flag (#1351)

* Add fse theme support flag

* FSE: drop varia support until ready
Glen Davies 5 年之前
父節點
當前提交
e6aec688d5
共有 2 個文件被更改,包括 6 次插入0 次删除
  1. 3 0
      maywood/functions.php
  2. 3 0
      modern-business/functions.php

+ 3 - 0
maywood/functions.php

@@ -99,6 +99,9 @@ if ( ! function_exists( 'maywood_setup' ) ) :
 				),
 				),
 			)
 			)
 		);
 		);
+
+		// Enable Full Site Editing
+		add_theme_support( 'full-site-editing');
 	}
 	}
 endif;
 endif;
 add_action( 'after_setup_theme', 'maywood_setup', 12 );
 add_action( 'after_setup_theme', 'maywood_setup', 12 );

+ 3 - 0
modern-business/functions.php

@@ -63,6 +63,9 @@ if ( ! function_exists( 'modern_business_setup' ) ) :
 				),
 				),
 			)
 			)
 		);
 		);
+		
+		// Enable Full Site Editing
+		add_theme_support( 'full-site-editing');
 	}
 	}
 endif; // modern_business_setup
 endif; // modern_business_setup
 add_action( 'after_setup_theme', 'modern_business_setup', 30 );
 add_action( 'after_setup_theme', 'modern_business_setup', 30 );