2017-09-30 24 views
-2

我的wordpress缺少</body></html>標籤,在主題中,該標籤應該位於哪個文件中?在主題文件</body>應該在哪裏?

我使用的是Otzi Lite wordpress主題。

這是頁腳代碼(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

非常感謝。這工作,現在我可以看到標籤! –