For a limited-time, upgrade to +Blizzard for $35 USD and receive the following:

— a free copy of Oblivion Light.
— a free copy of WebFlake Trackers Bundle.
— a free WF Halloween Member Badges (PSD).

You can visit this thread below for more details regarding the original promotion.

Contact @Davlin to make a purchase or for questions / comments.

Jump to content
  • 0

Adding Comments Box to Pages



I have installed a WP theme, however, the theme has removed the option for users to comment on 'Pages'. The WP Themer provided guidance on how to re-enable comments to a different style of page (Courses) but I couldn't read this across to the Page.php file.



go to include/course-option.php file in goodlayers-lms plugin folder, at line 37, change

'supports'           => array( 'title', 'editor', 'author', 'thumbnail', 'custom-fields', 'revisions' )


'supports'           => array( 'title', 'editor', 'author', 'thumbnail', 'custom-fields', 'revisions', 'comments' )


in single-course.php file around line 117, add this

comments_template( '', true ); 

right after

echo '</div>'; // course-content

I have attached some files that may help.

Single.php  - Includes the code for the comments section (This appears on Single Blog Posts)

page.php - I assume this is the one i need to edit with code from above

gdlr-page-options.php - I have edited the following line to tie in with the instructions above:

add_post_type_support( 'page', 'excerpt','comments');

Unfortunately my PHP/HTML skills is nowhere near good enough to decipher this. I've had a go, and get lots of code errors :/

Any Help is appreciated

Many Thanks






Full theme is available here if it's any help


Edited by Caleeco

Share this post

Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

You want to show comments on your pages? If yes then try to paste this code into your page.php


<?php get_header(); ?>

	<div class="gdlr-content">

		<!-- Above Sidebar Section-->
		<?php global $gdlr_post_option, $above_sidebar_content, $with_sidebar_content, $below_sidebar_content; ?>
		<?php if(!empty($above_sidebar_content)){ ?>
			<div class="above-sidebar-wrapper"><?php gdlr_print_page_builder($above_sidebar_content); ?></div>
		<?php } ?>
		<!-- Sidebar With Content Section-->
			if( !empty($gdlr_post_option['sidebar']) && ($gdlr_post_option['sidebar'] != 'no-sidebar' )){
				global $gdlr_sidebar;
				$gdlr_sidebar = array(
				$gdlr_sidebar = gdlr_get_sidebar_class($gdlr_sidebar);
			<div class="with-sidebar-wrapper <?php echo 'gdlr-type-' . $gdlr_sidebar['type']; ?>">
				<div class="with-sidebar-container container">
					<div class="with-sidebar-left <?php echo $gdlr_sidebar['outer']; ?> columns">
						<div class="with-sidebar-content <?php echo $gdlr_sidebar['center']; ?> columns">
								if( !empty($with_sidebar_content) ){
									gdlr_print_page_builder($with_sidebar_content, false);
								if( !empty($gdlr_post_option['show-content']) && $gdlr_post_option['show-content'] != 'disable' ){
									get_template_part('single/content', 'page');
												<?php comments_template( '', true ); ?>		

						<?php get_sidebar('left'); ?>
						<div class="clear"></div>
					<?php get_sidebar('right'); ?>
					<div class="clear"></div>
				if( !empty($with_sidebar_content) ){ 
					echo '<div class="with-sidebar-wrapper">';
					echo '</div>';
				if( empty($gdlr_post_option['show-content']) || $gdlr_post_option['show-content'] != 'disable' ){
					get_template_part('single/content', 'page');
		<!-- Below Sidebar Section-->
		<?php if(!empty($below_sidebar_content)){ ?>
			<div class="below-sidebar-wrapper"><?php gdlr_print_page_builder($below_sidebar_content); ?></div>
		<?php } ?>

	</div><!-- gdlr-content -->
<?php get_footer(); ?>


Share this post

Link to post
Share on other sites
What do you think? Remember the human.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.