Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Comments, trackbacks & pings (http://forum.bytesforall.com/forumdisplay.php?f=19)
-   -   Removing Comments completely (http://forum.bytesforall.com/showthread.php?t=705)

martinb Mar 10, 2009 04:16 AM

Removing Comments completely
 
Hello !! I am a bit of a novice regarding code but am enjoying it. Any ideas about getting rid of comments on posts completely from Atahualpa. Tried No Comments On Pages plugin but didn't seem to work.
Any help would be much appreciated!
Cheers, Martin

Flynn Mar 10, 2009 03:43 PM

In index.php, delete this:

PHP Code:

         <?php // Load Comments template (on single post pages, and "Page" pages, if set on options page) 
        
if ( is_single() OR ( is_page() && $bfa_ata['comments_on_pages'] == "Yes") ) {
            if (
function_exists('paged_comments')) { 
                
paged_comments_template(); // If plugin "Paged Comments" is activated, for WP 2.6 and older
                
} else { 
                
comments_template(); // This will load either legacy comments template (for WP 2.6 and older) or the new standard comments template (for WP 2.7 and newer)
            
}     
        } 
?>


martinb Mar 11, 2009 01:33 AM

Many thanks Flynn - worked a dream - Your the Man!!!

Cheers, Martin


All times are GMT -6. The time now is 06:55 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.