Просмотр исходного кода

Fix a template conflict issue with modern business

We disabled alignment settings for the blocks, but the template
content still has alignment in it. This produces a template
conflict warning in the editor.
Noah Allen 6 лет назад
Родитель
Сommit
2c4930ec88
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      modern-business/inc/fse-template-data.php

+ 3 - 3
modern-business/inc/fse-template-data.php

@@ -129,9 +129,9 @@ class A8C_WP_Template_Data_Inserter {
 	 * @return string
 	 * @return string
 	 */
 	 */
 	public function get_template_content( $header_id, $footer_id ) {
 	public function get_template_content( $header_id, $footer_id ) {
-		return "<!-- wp:a8c/template {\"templateId\":$header_id,\"align\":\"full\"} /-->" .
-		       '<!-- wp:a8c/post-content {"align":"full"} /-->' .
-		       "<!-- wp:a8c/template {\"templateId\":$footer_id,\"align\":\"full\"} /-->";
+		return "<!-- wp:a8c/template {\"templateId\":$header_id} /-->" .
+		       '<!-- wp:a8c/post-content /-->' .
+		       "<!-- wp:a8c/template {\"templateId\":$footer_id} /-->";
 	}
 	}
 
 
 	/**
 	/**