WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Comment function disappeared

[Resolved] Comment function disappeared

  • Hi,

    I just noticed that the comment funcion on my site is gone. I had only been updating some pages, nothing more.

    I cannot give you any further information, since I haven’t done anything more than just updating pages and I have not touched the comment-box on each page.

    I have tried to overwrite my theme files (evening-shade) with fresh ones, but still no comment field at the end of each post. I thought that if I reset the files, the comment function will appear again but I was wrong :(.

    Does anyone know what could be the problem?

    Thanks in advance!

    Kind regards
    Emelie.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Moderator Kathryn

    @zoonini

    Automattic Happiness Engineer

    If you haven’t touched the comments function in your theme files, have you accidentally turned off the option to leave comments in your site settings?

    Nopes, I haven’t been to settings since I installed wordpress a long time ago. I looked at the settings now and the comment function is still on.

    Moderator Kathryn

    @zoonini

    Automattic Happiness Engineer

    Then I suggest you provide a link to your site and copy the contents of your single.php, index.php & comments.php files in http://wordpress.pastebin.com/ so someone can have a look directly.

    I have now installed and activated another theme and deleted the theme evening-shade. I uploaded a fresh version of evening-shade again but then the comment function disappeared again! Even though it’s a fresh version.

    Straaaange..

    ah, let’s have a try:

    single.php: http://wordpress.pastebin.com/Ad2KLDsU
    index.php: http://wordpress.pastebin.com/a7E2rt01
    comments.php: http://wordpress.pastebin.com/6v0ngTv9

    the url is http://www.undine.se
    it’s in swedish but I guess the content is not neccessary ๐Ÿ˜‰

    thanks!

    Chip Bennett

    @chipbennett

    Theme Review Admin

    It appears that your homepage is a static page. Do you have comments enabled for Pages?

    I can’t find where you’ve got your blog posts. But then, I can’t read Swedish, and GoogleTranslate is failing me. ๐Ÿ™‚

    Thanks for your answer, Chip ๐Ÿ™‚

    I have no posts, I use pages only.
    I want my homepage/start page to be a static page, since I do not want to use my site as a blog, just a simple home page with static pages about me and my services and interests.

    The comment function works in other themes, it’s just in this theme the comment function isn’t working :/

    So I have all comment functions enabled in settings and on each page I want the function to be enabled in ๐Ÿ™‚

    Edit:
    I tried to enable that the start page will show my latest posts and then the comment function actually shows beneath the post!! Wohoh.

    But it does still NOT show in pages! :/
    I want ppl to leave comments on my pages as well ๐Ÿ™‚

    Chip Bennett

    @chipbennett

    Theme Review Admin

    Can you post a pastebin of your page.php template file? My guess is that it may be missing the call to comments_template().

    Yep, that’s correct ๐Ÿ™‚
    THANKS A LOT ๐Ÿ™‚

    I studied some working themes and in page.php the

    comments_template();

    function was missing so I simply inserted it in my evening-shade theme. Voilรก!

    <3 thanks again <3

    Chip Bennett

    @chipbennett

    Theme Review Admin

    Glad you got it working! ๐Ÿ™‚

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘[Resolved] Comment function disappeared’ is closed to new replies.