I am using inFocus 2.2 and Wordpress 3.2.1. I realized that there seems to be no possibility to display comments on pages. I activated both 'allow comments' and 'allow trackbacks and pingbacks' in the page options, however in the frontend the fields to comment don't show up. What am I doing wrong?
No comments on pages possible?
(11 posts) (3 voices)
-
Posted 9 months ago #
-
Hello Rhineland,
Open up
/wp-content/themes/infocus/page.phpand on line 35 you should see this,</div><!-- #post-## -->Try adding this line right beneath it,
<?php comments_template( '', true ); ?>Let us know if that works for you.
Posted 9 months ago # -
Yes, this adds the comment box. However, if you fill in a comment and click on 'send', the comment is not displayed on the page afterwards. You can only see the line saying '1 comment' (and '0 trackbacks'), but right beneath it there is only the comment box again.
Edit:
I discovered another error: If you add those lines to the page.php, then sub-pages are not shown in the menu anymore. Usually this wonderful sliding menu pops up when you move your mouse over the main menu, but this sliding menu just does not show up when adding your code to the page.php.Posted 9 months ago # -
Try opening
/wp-content/themes/infocus/lib/functions/scripts.phpand on line 182 you should see this,if( apply_atomic( 'post_comment_styles', $options['post_comment_styles'] ) == 'tab' && is_single() )Change it like this,
if( apply_atomic( 'post_comment_styles', $options['post_comment_styles'] ) == 'tab' && is_singular() )Let us know if that works for you Rhineland.
Posted 9 months ago # -
Yes, this brings back the comment box and the comments. Also the menu error is gone. Thanks for your help.
However, I would like to see this code implemented in one of the next releases of inFocus, because then I do not have to edit those files again and others can use this feature as well. Sometimes it is actually useful to have the comments option on pages. :)
Posted 9 months ago # -
I'll move this to feature requests and we'll probably see it added in a future update.
Posted 9 months ago # -
Good idea. I just want to add that the 'new' comment box is not affected by any translation file, which means that tabs ('1 comment', '0 trackbacks') and other things still remain being displayed in english although the 'normal' comment box (on the blog page) is correctly translated.
Posted 9 months ago # -
Hello!
I have applied all Elliott's suggested codes and … nothing. After using a shortcode generator on the web page (not a blog), i.e. Widget-Comments-5 the only thing that has changed is: [comments number="5"] in the HTML edit, in the spot where I would like to add Comment box for viewers of my page.
I am totally new to Wordpress and do not know what else can be done or what I am doing wrong. Will appreciate any help, as this should appear on the page on Monday. Thank you!
Wordpress 3.11., Infocus 2.3
Posted 6 months ago # -
Hello newuser,
Are you trying to add comments for pages or something else? Just follow the instructions above and make sure that you have the "Allow Comments" field checked when editing your page.
You do not need to mess around with the
[comments]shortcode at all.Posted 6 months ago # -
Warm…
THANKS!
There seems to be a problem with login. Right now it is set up for admin, but I need anyone who reads the page section to be able to comment without logging in (or perhaps you advise otherwise and there is a quick set up possible?).
Also I would like to have two tweaks made to the script/code:
1) change "LEAVE A REPLY" into "COMMENTS" (did not find it possible to do in pages/script.php).
2) move the box to mid section to relate this to information about the recent expo (below the picture, i.e middle of the page instead of end of page as is now).
As far as my problem origins: I had WP set up for me in the main FTP folder, as well as the Library and I was making tweaks in the main folder, instead the library, hence there were no results…
Here is the page if you need to see or test it
http://mundi.com/english_latest-html/Elliott, many thanks again for your time and effort. I think I will have it resolved after all. BR- Stefan
Posted 6 months ago # -
ps - I realize my problem with logging is solved, as I was viewing it as an admin on my mac. Also this script is a reply form, but I actually need a Comments form with comments left that can be read bu others (like a post).
Strangely when I view HOME page on idevices the buttons are not flushed, and yet on the iMac - everything looks fine. What is the code to fix it? Thanks again.
Posted 6 months ago #
Reply
You must log in to post.













