Remove Blog Comment block?

Discussion in 'GeoCraft WordPress Theme' started by jsal2, Jul 18, 2013.

Thread Status:
Not open for further replies.
  1. jsal2

    jsal2 Member

    Joined:
    Dec 23, 2012
    Messages:
    112
    Likes Received:
    7
    How can I remove/hide the Comment Section or Comment Block at the bottom of the Blog Posts? 2013-07-18_blogcommentblock.png

    My checkbox in the Dashboard-> Settings->Discussion is already set to Not Allow comments. 2013-07-18_discussion settings.png

    Thank you!
     
  2. Gourav

    Gourav Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    7,728
    Likes Received:
    207
    Hello,

    Go to single-post.php present in your theme directory and remove the code given below

    Code:
     <h2>Comments</h2>
                        <div class="post-comments">
                            <!--Start Comment box-->
                            <?php comments_template('/blog-comments.php', true); ?>
                            <!--End Comment box-->
    Sending image for reference

    2013-07-18_1723.png



    This will solve your issue.
     
  3. jsal2

    jsal2 Member

    Joined:
    Dec 23, 2012
    Messages:
    112
    Likes Received:
    7
    Wonderful, thank you very much!
     
  4. nzcid

    nzcid Member

    Joined:
    Mar 22, 2013
    Messages:
    72
    Likes Received:
    1
    Removing that code in 1.79 actually breaks the template.

    I tried commenting it out, removing it altogether, the result is always the same, the template breaks.

    It removes the block okay, but the previous post text shifts to the top right. SO I guess it breaks the div somewhere.

    Are you able to update this post so it gets removed without breaking the template please.
     
  5. jsal2

    jsal2 Member

    Joined:
    Dec 23, 2012
    Messages:
    112
    Likes Received:
    7
    Good point, Nzcid. So I actually also removed the </div> line under the <!--End Comment box--> line as well, and that worked fine ;)

    ie; removed code below
    Code:
                     
    <h2>Comments</h2>
                        <div class="post-comments">
                            <!--Start Comment box-->
                            <?php comments_template('/blog-comments.php', true); ?>
                            <!--End Comment box-->
                        </div>
    
     
Thread Status:
Not open for further replies.

Share This Page