Jump to content
  • 0
Caleeco

Adding Comments Box to Pages

Question

Caleeco    19

Hello, 

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.

Quote

1.)

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' )

to

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

2.)

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

Caleeco

single.php

gdlr-page-options.php

page.php

 

Full theme is available here if it's any help

 

Edited by Caleeco

Share this post


Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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.

×