2017-09-30 4 views
-2

私のWordPressには、</body></html>というタグがありません。テーマには、どのファイルがその中にあるべきですか?テーマファイルでは、</body>は?

私はOtzi Liteワードプレステーマを使用しています。

これはフッターコード(footer.php)です:

<?php 
/** 
* The template for displaying the footer. 
* 
* Contains the closing of the #content div and all content after. 
* 
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials 
* 
* @package Otzi Lite 
*/ 

/** 
* otzi_lite_after_content hook 
* 
* @hooked otzi_lite_content_end - 10 
* @hooked otzi_lite_sidebar - 20 
* 
*/ 
do_action('otzi_lite_after_content'); 

/** 
* otzi_lite_footer hook 
* 
* @hooked otzi_lite_footer_content_start - 10 
* @hooked otzi_lite_site_info_start - 20 
* @hooked otzi_lite_footer_site_description - 30 
* @hooked otzi_lite_social_menu - 40 
* @hooked otzi_lite_footer_content - 50 
* @hooked otzi_lite_site_info_end - 60 
* @hooked otzi_lite_footer_content_end - 190 
* @hooked otzi_lite_page_end - 200 
* 
*/ 
do_action('otzi_lite_footer'); 

/** 
* otzi_lite_after hook 
* 
*/ 
do_action('otzi_lite_after'); 

/** 
* otzi_lite_after hook 
* 
* @hooked otzi_lite_scrollup - 10 
* 
*/ 
wp_footer(); 

答えて

1

それは本当に、テーマによって異なりますが、一般的に閉じ</body>タグを言えば、通常はfooter.phpファイルに含まれています。あなたのテーマは、閉鎖体とhtmlタグが欠落しているので

、ちょうどフッターの最後にこれを追加します。

# rest of your codes 
wp_footer(); 
?> 
</body> 
</html> 
+0

私は私の質問でフッターのコードを共有してきました。どうぞご覧ください。 –

+1

ありがとうございました。それは動作し、今私はタグを見ることができます! –

関連する問題