There is a notice in the single-product.php woocommerce, The photo is in the description
up vote
1
down vote
favorite
Notice: Theme without comments.php is deprecated since version 3.0 with no alternative available. Please include a comments.php template in your theme. in /--/--/--/--/wp-includes/functions.php on line 3984.
There is a notice in the single-product.php woocommerce file
,I see list of comments but have this notice
also i added comments.php in my theme
this comments.php file in theme
<?php
/*
* If the current post is protected by a password and the visitor has not yet
* entered the password we will return early without loading the comments.
*/
if ( post_password_required() )
return;
?>
<div id="comments" class="comments-area">
<?php if ( have_comments() ) : ?>
<h2 class="comments-title">
<?php
printf( _nx( 'One thought on “%2$s”', '%1$s thoughts on “%2$s”', get_comments_number(), 'comments title', 'ivanhoe' ),
number_format_i18n( get_comments_number() ), '<span>' . get_the_title() . '</span>' );
?>
</h2>
<ol class="commentlist">
<?php
wp_list_comments( array(
'style' => 'ol',
'short_ping' => true,
'avatar_size' => 74,
) );
?>
</ol><!-- .comment-list -->
<?php
// Are there comments to navigate through?
if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) :
?>
<nav class="navigation comment-navigation" role="navigation">
<h1 class="screen-reader-text section-heading"><?php _e( 'Comment navigation', 'ivanhoe' ); ?></h1>
<div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'ivanhoe' ) ); ?></div>
<div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', 'ivanhoe' ) ); ?></div>
</nav><!-- .comment-navigation -->
<?php endif; // Check for comment navigation ?>
<?php if ( ! comments_open() && get_comments_number() ) : ?>
<p class="no-comments"><?php _e( 'Comments are closed.' , 'ivanhoe' ); ?></p>
<?php endif; ?>
<?php endif; // have_comments() ?>
<?php comment_form(); ?>
</div><!-- #comments -->
php wordpress woocommerce
New contributor
jackma is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
|
show 6 more comments
up vote
1
down vote
favorite
Notice: Theme without comments.php is deprecated since version 3.0 with no alternative available. Please include a comments.php template in your theme. in /--/--/--/--/wp-includes/functions.php on line 3984.
There is a notice in the single-product.php woocommerce file
,I see list of comments but have this notice
also i added comments.php in my theme
this comments.php file in theme
<?php
/*
* If the current post is protected by a password and the visitor has not yet
* entered the password we will return early without loading the comments.
*/
if ( post_password_required() )
return;
?>
<div id="comments" class="comments-area">
<?php if ( have_comments() ) : ?>
<h2 class="comments-title">
<?php
printf( _nx( 'One thought on “%2$s”', '%1$s thoughts on “%2$s”', get_comments_number(), 'comments title', 'ivanhoe' ),
number_format_i18n( get_comments_number() ), '<span>' . get_the_title() . '</span>' );
?>
</h2>
<ol class="commentlist">
<?php
wp_list_comments( array(
'style' => 'ol',
'short_ping' => true,
'avatar_size' => 74,
) );
?>
</ol><!-- .comment-list -->
<?php
// Are there comments to navigate through?
if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) :
?>
<nav class="navigation comment-navigation" role="navigation">
<h1 class="screen-reader-text section-heading"><?php _e( 'Comment navigation', 'ivanhoe' ); ?></h1>
<div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'ivanhoe' ) ); ?></div>
<div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', 'ivanhoe' ) ); ?></div>
</nav><!-- .comment-navigation -->
<?php endif; // Check for comment navigation ?>
<?php if ( ! comments_open() && get_comments_number() ) : ?>
<p class="no-comments"><?php _e( 'Comments are closed.' , 'ivanhoe' ); ?></p>
<?php endif; ?>
<?php endif; // have_comments() ?>
<?php comment_form(); ?>
</div><!-- #comments -->
php wordpress woocommerce
New contributor
jackma is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
As the error message says: the theme you are using is missing the comments.php template file. Please ask the theme provider to include this template or create the comments template file on your own.
– chris.ribal
2 days ago
I am the designer of this theme myself also i add comments.php file in my theme and template but i have this notice in single-product.php woocommerce file but i dont have this notice in single-post.php file
– jackma
2 days ago
can you post your comments.php file?
– Vel
2 days ago
and are you using this functioncomments_template()
anywhere any plugins and theme? check in all plugins
– Vel
2 days ago
woocommerce 3.5.1 and wordpress 4.9.8, yes i used comments_template in single-post.php
– jackma
2 days ago
|
show 6 more comments
up vote
1
down vote
favorite
up vote
1
down vote
favorite
Notice: Theme without comments.php is deprecated since version 3.0 with no alternative available. Please include a comments.php template in your theme. in /--/--/--/--/wp-includes/functions.php on line 3984.
There is a notice in the single-product.php woocommerce file
,I see list of comments but have this notice
also i added comments.php in my theme
this comments.php file in theme
<?php
/*
* If the current post is protected by a password and the visitor has not yet
* entered the password we will return early without loading the comments.
*/
if ( post_password_required() )
return;
?>
<div id="comments" class="comments-area">
<?php if ( have_comments() ) : ?>
<h2 class="comments-title">
<?php
printf( _nx( 'One thought on “%2$s”', '%1$s thoughts on “%2$s”', get_comments_number(), 'comments title', 'ivanhoe' ),
number_format_i18n( get_comments_number() ), '<span>' . get_the_title() . '</span>' );
?>
</h2>
<ol class="commentlist">
<?php
wp_list_comments( array(
'style' => 'ol',
'short_ping' => true,
'avatar_size' => 74,
) );
?>
</ol><!-- .comment-list -->
<?php
// Are there comments to navigate through?
if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) :
?>
<nav class="navigation comment-navigation" role="navigation">
<h1 class="screen-reader-text section-heading"><?php _e( 'Comment navigation', 'ivanhoe' ); ?></h1>
<div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'ivanhoe' ) ); ?></div>
<div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', 'ivanhoe' ) ); ?></div>
</nav><!-- .comment-navigation -->
<?php endif; // Check for comment navigation ?>
<?php if ( ! comments_open() && get_comments_number() ) : ?>
<p class="no-comments"><?php _e( 'Comments are closed.' , 'ivanhoe' ); ?></p>
<?php endif; ?>
<?php endif; // have_comments() ?>
<?php comment_form(); ?>
</div><!-- #comments -->
php wordpress woocommerce
New contributor
jackma is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Notice: Theme without comments.php is deprecated since version 3.0 with no alternative available. Please include a comments.php template in your theme. in /--/--/--/--/wp-includes/functions.php on line 3984.
There is a notice in the single-product.php woocommerce file
,I see list of comments but have this notice
also i added comments.php in my theme
this comments.php file in theme
<?php
/*
* If the current post is protected by a password and the visitor has not yet
* entered the password we will return early without loading the comments.
*/
if ( post_password_required() )
return;
?>
<div id="comments" class="comments-area">
<?php if ( have_comments() ) : ?>
<h2 class="comments-title">
<?php
printf( _nx( 'One thought on “%2$s”', '%1$s thoughts on “%2$s”', get_comments_number(), 'comments title', 'ivanhoe' ),
number_format_i18n( get_comments_number() ), '<span>' . get_the_title() . '</span>' );
?>
</h2>
<ol class="commentlist">
<?php
wp_list_comments( array(
'style' => 'ol',
'short_ping' => true,
'avatar_size' => 74,
) );
?>
</ol><!-- .comment-list -->
<?php
// Are there comments to navigate through?
if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) :
?>
<nav class="navigation comment-navigation" role="navigation">
<h1 class="screen-reader-text section-heading"><?php _e( 'Comment navigation', 'ivanhoe' ); ?></h1>
<div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'ivanhoe' ) ); ?></div>
<div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', 'ivanhoe' ) ); ?></div>
</nav><!-- .comment-navigation -->
<?php endif; // Check for comment navigation ?>
<?php if ( ! comments_open() && get_comments_number() ) : ?>
<p class="no-comments"><?php _e( 'Comments are closed.' , 'ivanhoe' ); ?></p>
<?php endif; ?>
<?php endif; // have_comments() ?>
<?php comment_form(); ?>
</div><!-- #comments -->
php wordpress woocommerce
php wordpress woocommerce
New contributor
jackma is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
jackma is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
edited 2 days ago
New contributor
jackma is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked 2 days ago
jackma
134
134
New contributor
jackma is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
jackma is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
jackma is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
As the error message says: the theme you are using is missing the comments.php template file. Please ask the theme provider to include this template or create the comments template file on your own.
– chris.ribal
2 days ago
I am the designer of this theme myself also i add comments.php file in my theme and template but i have this notice in single-product.php woocommerce file but i dont have this notice in single-post.php file
– jackma
2 days ago
can you post your comments.php file?
– Vel
2 days ago
and are you using this functioncomments_template()
anywhere any plugins and theme? check in all plugins
– Vel
2 days ago
woocommerce 3.5.1 and wordpress 4.9.8, yes i used comments_template in single-post.php
– jackma
2 days ago
|
show 6 more comments
As the error message says: the theme you are using is missing the comments.php template file. Please ask the theme provider to include this template or create the comments template file on your own.
– chris.ribal
2 days ago
I am the designer of this theme myself also i add comments.php file in my theme and template but i have this notice in single-product.php woocommerce file but i dont have this notice in single-post.php file
– jackma
2 days ago
can you post your comments.php file?
– Vel
2 days ago
and are you using this functioncomments_template()
anywhere any plugins and theme? check in all plugins
– Vel
2 days ago
woocommerce 3.5.1 and wordpress 4.9.8, yes i used comments_template in single-post.php
– jackma
2 days ago
As the error message says: the theme you are using is missing the comments.php template file. Please ask the theme provider to include this template or create the comments template file on your own.
– chris.ribal
2 days ago
As the error message says: the theme you are using is missing the comments.php template file. Please ask the theme provider to include this template or create the comments template file on your own.
– chris.ribal
2 days ago
I am the designer of this theme myself also i add comments.php file in my theme and template but i have this notice in single-product.php woocommerce file but i dont have this notice in single-post.php file
– jackma
2 days ago
I am the designer of this theme myself also i add comments.php file in my theme and template but i have this notice in single-product.php woocommerce file but i dont have this notice in single-post.php file
– jackma
2 days ago
can you post your comments.php file?
– Vel
2 days ago
can you post your comments.php file?
– Vel
2 days ago
and are you using this function
comments_template()
anywhere any plugins and theme? check in all plugins– Vel
2 days ago
and are you using this function
comments_template()
anywhere any plugins and theme? check in all plugins– Vel
2 days ago
woocommerce 3.5.1 and wordpress 4.9.8, yes i used comments_template in single-post.php
– jackma
2 days ago
woocommerce 3.5.1 and wordpress 4.9.8, yes i used comments_template in single-post.php
– jackma
2 days ago
|
show 6 more comments
1 Answer
1
active
oldest
votes
up vote
1
down vote
accepted
Add this code in functions.php file
add_theme_support('woocommerce');
thanks a lot Vel it is working fine
– jackma
2 days ago
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
Add this code in functions.php file
add_theme_support('woocommerce');
thanks a lot Vel it is working fine
– jackma
2 days ago
add a comment |
up vote
1
down vote
accepted
Add this code in functions.php file
add_theme_support('woocommerce');
thanks a lot Vel it is working fine
– jackma
2 days ago
add a comment |
up vote
1
down vote
accepted
up vote
1
down vote
accepted
Add this code in functions.php file
add_theme_support('woocommerce');
Add this code in functions.php file
add_theme_support('woocommerce');
answered 2 days ago
Vel
5,98041843
5,98041843
thanks a lot Vel it is working fine
– jackma
2 days ago
add a comment |
thanks a lot Vel it is working fine
– jackma
2 days ago
thanks a lot Vel it is working fine
– jackma
2 days ago
thanks a lot Vel it is working fine
– jackma
2 days ago
add a comment |
jackma is a new contributor. Be nice, and check out our Code of Conduct.
jackma is a new contributor. Be nice, and check out our Code of Conduct.
jackma is a new contributor. Be nice, and check out our Code of Conduct.
jackma is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53373793%2fthere-is-a-notice-in-the-single-product-php-woocommerce-the-photo-is-in-the-des%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
As the error message says: the theme you are using is missing the comments.php template file. Please ask the theme provider to include this template or create the comments template file on your own.
– chris.ribal
2 days ago
I am the designer of this theme myself also i add comments.php file in my theme and template but i have this notice in single-product.php woocommerce file but i dont have this notice in single-post.php file
– jackma
2 days ago
can you post your comments.php file?
– Vel
2 days ago
and are you using this function
comments_template()
anywhere any plugins and theme? check in all plugins– Vel
2 days ago
woocommerce 3.5.1 and wordpress 4.9.8, yes i used comments_template in single-post.php
– jackma
2 days ago