do not see comments box in new pages
-
Hi,
When I create a new page it does not show a standard comments box at the bottom. The old pages and posts (old and new) are ok.
In the html of a page I see empty comments div:
<div id=”comments”></div>
Theme is zeeNoble.
Here is a page with comments missing:
https://www.vita-bio.com/course_04_16_usl/and here is an old page with comments:
https://www.vita-bio.com/%D0%B2%D0%BE%D0%BF%D1%80%D0%BE%D1%81%D1%8B-%D0%B8-%D0%BE%D1%82%D0%B2%D0%B5%D1%82%D1%8B/In php code it looks like this:
<?php /* Template Name: Landing page Comments */ ?> <html <?php language_attributes(); ?>> <head> <meta charset="<?php bloginfo( 'charset' ); ?>" /> <meta name="viewport" content="width=device-width, initial-scale=1"> <title><?php wp_title( '|', true, 'right' ); ?></title> <link rel="profile" href="https://gmpg.org/xfn/11" /> <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" /> <link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700&subset=latin,cyrillic-ext' rel='stylesheet' type='text/css'> <?php /* Embeds HTML5shiv to support HTML5 elements in older IE versions. */ ?> <!--[if lt IE 9]> <script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script> <![endif]--> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script> <?php wp_head(); ?> </head> <body <?php body_class(); ?>> <?php themezee_wrapper_before(); // hook before #wrapper ?> <div id="wrapper" class="hfeed"> <?php themezee_header_before(); // hook before #header ?> <header id="header" class="clearfix" role="banner"> <div id="logo"> <a href="<?php echo esc_url(home_url('/')); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"> <?php // Display Logo Image or Site Title $options = get_option('zeenoble_options'); if ( isset($options['themeZee_general_logo']) and $options['themeZee_general_logo'] <> "" ) : ?> <img class="logo-image" src="<?php echo esc_url($options['themeZee_general_logo']); ?>" alt="Logo" /></a> <?php else: ?> <h1 class="site-title"><?php bloginfo('name'); ?></h1> <?php endif; ?> <!-- <img class="logo-image" src="https://www.vita-bio.com/images/vita-bio.gif" alt="vita-bio" /> --> </a> <?php if(isset($options['themeZee_general_tagline']) and $options['themeZee_general_tagline'] == 'true') : ?> <h2 class="site-description"><?php echo bloginfo('description'); ?></h2> <?php endif; ?> </div> <!-- <nav id="mainnav" role="navigation"> <?php // Get Navigation out of Theme Options wp_nav_menu(array('theme_location' => 'main_navi', 'container' => false, 'menu_id' => 'mainnav-menu', 'echo' => true, 'fallback_cb' => 'themezee_default_menu', 'before' => '', 'after' => '', 'link_before' => '', 'link_after' => '', 'depth' => 0)); ?> </nav> --> </header> <?php themezee_header_after(); // hook after #header ?> <!-- <?php // Display Custom Header Image themezee_display_custom_header(); ?> --> <?php if ( is_page( 'book_prakticheskaya_bioenergia' ) ) { echo " <div id='custom-header'><img src='https://www.vita-bio.com/images/banner_book1a.jpg' class='hdrImg'></div>"; } if ( is_page( 'book_otnosheniya' ) ) { echo " <div id='custom-header'><img src='https://www.vita-bio.com/images/banner_book2a.jpg' class='hdrImg'></div>"; } if ( is_page( 'kurs-bioorgonomii' ) ) { echo " <div id='custom-header'><img src='https://www.vita-bio.com/images/bioenergia-study5.jpg' class='hdrImg'></div>"; } if ( is_page( 'dreams-come-true' ) || is_page( 'dreams-come-true1' ) || is_page( 'dreams-come-true2' ) || is_page( 'dreams-come-true3' ) || is_page( 'dreams-come-true4' )) { echo " <div id='custom-header'><img src='https://www.vita-bio.com/images/banner_vopros_vselennoy.jpg' class='hdrImg'></div>"; } ?> <div id="wrap" class="template-fullwidth"> <section id="content" class="fullwidth" role="main"> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div <?php post_class(); ?>> <h2 class="page-title"><?php the_title(); ?></h2> <?php edit_post_link(__( 'Edit', 'zeeNoble_language' )); ?> <div class="entry clearfix"> <?php the_content(); ?> </div> <?php wp_link_pages(); ?> </div> <?php endwhile; ?> <?php endif; ?> <?php comments_template(); ?> </section> </div> <?php get_footer(); ?>
thanks in advance
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘do not see comments box in new pages’ is closed to new replies.