diff --git a/layout/_third-party/popular_posts.ejs b/layout/_third-party/popular_posts.ejs
deleted file mode 100644
index 943c5c2bc..000000000
--- a/layout/_third-party/popular_posts.ejs
+++ /dev/null
@@ -1,4 +0,0 @@
-
-
<%- __('post.related_posts') %>
- <%- popular_posts( {} , post ) %>
-
diff --git a/layout/_widget/related_posts.ejs b/layout/_widget/related_posts.ejs
index e6cfa3750..b0ea295ca 100755
--- a/layout/_widget/related_posts.ejs
+++ b/layout/_widget/related_posts.ejs
@@ -1,8 +1,8 @@
-<% if(page.layout == 'post' && page.content && page.path){ %>
+<% if(theme.services && theme.services.popular_posts == true && page.layout == 'post' && page.content && page.path){ %>
<% } %>