Hi there,
WP-Forge is a standard theme, if it wasn’t it wouldn’t be in the repository. I believe that error is caused by a function that removes the default stylings of the recent comment widget.
You can do one of two things: You can comment out that portion of functions.php
which is this:
/**
* Removes recent comments styling injected into header by WordPress - Styles moved to style sheet
* @since WP-Forge 5.5.1.7
*/
if ( ! function_exists( 'wpforge_remove_recent_comments_style' ) ) {
function wpforge_remove_recent_comments_style() {
global $wp_widget_factory;
remove_action( 'wp_head', array( $wp_widget_factory->widgets['WP_Widget_Recent_Comments'], 'recent_comments_style' ) );
}
to this:
/**
* Removes recent comments styling injected into header by WordPress - Styles moved to style sheet
* @since WP-Forge 5.5.1.7
*/
//if ( ! function_exists( 'wpforge_remove_recent_comments_style' ) ) {
// function wpforge_remove_recent_comments_style() {
// global $wp_widget_factory;
// remove_action( 'wp_head', array( $wp_widget_factory->widgets['WP_Widget_Recent_Comments'], 'recent_comments_style' ) );
// }
// add_action( 'widgets_init', 'wpforge_remove_recent_comments_style' );
//}
and then use the plugin you referred to above to remove comments, or…
you could open up single.php
and comment out the following:
<?php comments_template( '', true ); ?>
like so:
<?php // comments_template( '', true ); ?>
Entirely up to you how want to do it. I do hope that you are using a child theme, if not, of course as you know, when you update you will lose those edits.
Hope this help.
-
This reply was modified 8 years, 1 month ago by ThemeAWESOME.