remove comments from all posts
-
I have tried a few options but I have not figured out how to remove comments from my posts
http://veganadvocate.azurewebsites.net/
this way spammers have no way to pester me or trash my database etc
-
hi try installing a plugin in this path
https://wordpress.org/plugins/no-page-comment/You will need to bulk delete any existing comments you no longer wish to have on your site then you can disable any comments from being made.
In settings > discussion uncheck the tick box allow comment on new articles.
To stop comments on posts already published go to posts > tick “select all” hit the edit tab and “do not allow comments”.
Hi @reputationsintact
your way doesn’t work at all,have you tried your way so far?
I did what you say but still ,users can post comments!What part is not working for you?
One typo I made for existing posts is I said click the “edit” tab when I should have said you need to click the “quick edit” tab to turn those comments off
I have just installed the theme ,I went to setting and uncheck everything in the path you said(setting -> discussion ) then run the site ,I could post a new comment!how we can disable sending comment ?
@rohallah thanks, i used that plug-in and it did what i wanted, nuke any opportunity for a spammer to post a comment etc
I was wondering if facebook comments can be installed in place of the now MIA comments?
I noticed that the comments still come up, so I as wondering how to persistently get rid of them
yor’welcome
ok I will solve your problem ( by another way) wait.firs remove each plugin you installed for removing comment
I offer you the best way for solving your problemat first
creat a folder name it food-recipes-child
creat 2 file in it(style.css and functions.php)style.css with this code
/* Theme Name: food-recipes child Theme URI: http://test.com Author: test Author URI: http://www.test.com Template: food-recipes Description: food-recipes Child Theme Version: 1.5 License: GNU General Public License v2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html */functions.php with this code
<?php add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' ); function theme_enqueue_styles() { wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ); } ?>then copy single.php file from food-recipes folder and paste it in food-recipes-child folder
with a editor like notepad++ open footer.php
and put // in line 50 and 55 befor code
it must be such<div class="foodrecipes-inner-blog-text" > <h6> <?php //comments_number( __('NO COMMENT','foodrecipes'), __('1 COMMENT','foodrecipes'),__('%s COMMENTS','foodrecipes') ); ?> </h6> </div> <?php endif; ?> <div class="foodrecipes-comment-form"> <?php //comments_template( '', true ); ?> </div>finally go to admin panel then apperance and activate the child-theme
If you still have the same problem copy page.php and do the same thing
tell me the result
Have a great day all
rohallahi make a functions.php and styles.php in the plugns but i was not able to identify the recipe theme folder
should i use a component from one of the other out of the box themes?
no you should do this thing in theme folder not plugin!
if you not familiar with codeing wordpress
share your host to do the job quicki moved it to the themes folder
there is no theme with the recipes theme i am using, only the 3 stock ones
i assume that is the right folder
I saw style.css of your website by looking at source of your webpage
content .Its style.css shows that your website uses food-recipes theme
that you can download it from this link https://wordpress.org/themes/food-recipes/
I think your site is created by someone eles is it?wp-content–>themes–>food-recipes
you should create your child folder next to folder food-recipes
The topic ‘remove comments from all posts’ is closed to new replies.