• chocochip

    (@chocochip)


    I inherited a website and it seems that the ‘comments’ functionality doesn’t work with the website’s theme; as when I change theme – comments instantly work. I am not in a position to switch themes but is there a way I can override the theme’s conflict with WP’s comment features?

    Sincerely,
    Tricia

Viewing 5 replies - 1 through 5 (of 5 total)
  • Michael

    (@alchymyth)

    what theme is your inherited site using?

    what exactly is ‘not working’?

    Thread Starter chocochip

    (@chocochip)

    The website uses the “SimpleCorp” theme by Site5. I have the comment/discussion check boxes all clicked.

    If I switch the theme to something else, like Twenty Fifteen, all previously entered comments and the ability to Post a comment appears, i.e. the comment textbox & post comment button appears. If I switch back to SimpleCorp, the post comment button and comment textbox, along with all previously entered comments, disappear.

    Thanks,
    Tricia

    Michael

    (@alchymyth)

    unfortunately, your currently used theme is not one of the supported themes from https://wordpress.org/themes/ – therefore, you may need to contact the theme’s developer for help with your problem.

    generally, check if your theme has a comments.php file, and if the template single.php for example has some code with ‘comments_template()’ …

    Thread Starter chocochip

    (@chocochip)

    Thanks for shedding some light.

    I have contacted the theme’s dev. a couple of weeks ago and no word back. The SimpleCorp theme does have a comments.php and single.php but no mention of ‘comments_template()’ anywhere.

    Thanks,
    Patricia

    I had this issue myself on a custom theme I was building where the comments area would not display at all – even when all the comments code was properly set up like so:

    if ( comments_open() || get_comments_number() ) :
        comments_template();
        else : echo 'Sorry, comments are not working right now.';
    endif;

    I was heavily using custom post types and custom fields in this theme, so the theme files included a lot of queries to pull in the custom content.

    The issue for my theme was the fact that I was not always resetting WP_Query after each custom query.
    wp_reset_query();

    If you find that nothing else seems to work, just take a look through your theme files and make sure any custom query is always reset when you are done using it. That solved the issue for me and I hope this helps!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Comments not working with my theme’ is closed to new replies.