diff --git a/internal/theme/twentyfifteen/posts/detail.gohtml b/internal/theme/twentyfifteen/posts/detail.gohtml
index 3952fc7..ce9c883 100644
--- a/internal/theme/twentyfifteen/posts/detail.gohtml
+++ b/internal/theme/twentyfifteen/posts/detail.gohtml
@@ -129,7 +129,4 @@
{{else}}
{{template "layout/empty"}}
{{end }}
-{{end}}
-{{ define "footer"}}
-
{{end}}
\ No newline at end of file
diff --git a/internal/theme/twentyseventeen/layout/footersvg.gohtml b/internal/theme/twentyseventeen/layout/footersvg.gohtml
index b099bab..2559db5 100644
--- a/internal/theme/twentyseventeen/layout/footersvg.gohtml
+++ b/internal/theme/twentyseventeen/layout/footersvg.gohtml
@@ -161,7 +161,4 @@
-
- {{block "footerx" .}}
- {{end}}
{{end}}
\ No newline at end of file
diff --git a/internal/theme/twentyseventeen/posts/detail.gohtml b/internal/theme/twentyseventeen/posts/detail.gohtml
index 5f16e7a..2545935 100644
--- a/internal/theme/twentyseventeen/posts/detail.gohtml
+++ b/internal/theme/twentyseventeen/posts/detail.gohtml
@@ -129,8 +129,3 @@
{{end }}
{{end}}
-
-{{ define "footerx"}}
-
-{{end}}
-
diff --git a/internal/theme/wp/detail.go b/internal/theme/wp/detail.go
index e44e8e4..f087820 100644
--- a/internal/theme/wp/detail.go
+++ b/internal/theme/wp/detail.go
@@ -101,6 +101,12 @@ func (d *DetailHandle) ContextPost() {
}
func (d *DetailHandle) Render() {
+ if d.Post.CommentStatus == "open" && wpconfig.GetOption("thread_comments") == "1" {
+ d.PushGroupFooterScript(30, func(h *Handle) string {
+ return ``
+ })
+ }
+
d.PushHandleFn(constraints.Ok, NewHandleFn(func(h *Handle) {
d.PasswordProject()
d.RenderComment()