• Resolved jeanbonbeurre

    (@jeanbonbeurre)


    When I’m testing my website with wamp, here’s the comment section I get a certain display, which is the one I want. But when I’m browsing my website, the comments display suck. To understand the difference, I added a a line of code inside my theme’s comments.php file :

    <ol class="comment-list">
    			<?php
    			echo "zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz";
    				wp_list_comments( 'type=comment&callback=gossebeau_comment' );	?>
    		</ol><!-- .comment-list -->

    The “zzz” line is displayed on localhost, but does not appear online, which leads me to think that my comments.php file is not used online. I’ve checked, and the php version is the same online and on wamp. How can I fix this ?

Viewing 1 replies (of 1 total)
  • Thread Starter jeanbonbeurre

    (@jeanbonbeurre)

    I fixed this. The issue was this line of code, in my theme’s index.php :
    comments_template("./comments.php");

    I replaced it by
    comments_template("/comments.php");

    And it’s working fine.

Viewing 1 replies (of 1 total)
  • The topic ‘Custom theme comments.php not used’ is closed to new replies.