• When I’ve got comments turned off for certain posts (not globally turned off), I cannot get the “Comments are closed” text to display nor can I get the “0 comments” to change to “Comments turned off”.

    It’s not my theme, I’ve deactivated plugins, I’ve checked to be sure I had not used display:none.

    Where else can I look? I’ve got a localhost version going and it’s working properly (localhost was brand new WordPress install), so could it be a problem with my core WordPress and if so, are there particular files other than the comment-template.php and comment.php I should overwrite with a brand new copy of?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter aptharsia

    (@aptharsia)

    I’ve replaced the core files, still does not display. Anyone have any ideas?

    It’s not my theme

    what theme are you using?
    does the theme’s demo show the ‘comments closed’ text?
    what files in your theme have you checked for the issue?

    for example, look for comments_popup_link() http://codex.wordpress.org/Function_Reference/comments_popup_link in the index and archive templates; and for any related code in single.php and comments.php of your theme …

    some themes like the default theme Twenty Fourteen simply do not show ‘comments closed’.

    Thread Starter aptharsia

    (@aptharsia)

    MH Magazine Lite child theme but it doesn’t work in other themes either. Yes, the popup_link code is in the theme and shows up in the localhost install I have, running the same MH Magazine Lite child theme.

    nor can I get the “0 comments” to change to “Comments turned off”.

    the MH Magazine Lite theme is using comments_number() http://codex.wordpress.org/Function_Reference/comments_number which does not have any possibility to show the ‘comments closed’ text;
    you might need to consider to change that to comments_popup_link() (in content.php)

    shows up in the localhost install I have, running the same MH Magazine Lite child theme.

    the problem might be, the the respective code in comments.php, gets only output if the comments are closed and if there are already existing comments in the post.

    you might need to edit comments.php to correct that.

    for support with this theme specific edit, please post in https://wordpress.org/support/theme/mh-magazine-lite/

    Thread Starter aptharsia

    (@aptharsia)

    The localhost has comments on closed posts, for testing purposes and displays “Comments are Closed” whether there are comments/closed or no comments/closed. Anyways, it’s not the theme since “Comments are closed” doesn’t appear on any theme I use (I’ve used TwentyEleven, TwentyTwelve, Responsive and the MH Magazine non child themes) on the live site, although it does on my localhost. This is how I know it’s something else and not the theme.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘"Comments are closed" not displaying.’ is closed to new replies.