Removing "Comments & Responses" from Page templates

Discussion in 'Themia WordPress Theme' started by pham, Sep 19, 2013.

  1. pham

    pham New Member

    Joined:
    Sep 16, 2013
    Messages:
    14
    Likes Received:
    0
    On my normal pages using the "Default Template," if I have comments disabled on the page, at the end of the page there is a section showing "Comments & Responses" and "Comments are closed."

    I went into the comments.php and removed the comments are closed line but the heading "Comments & Responses" is still there. I want to remove the whole comments section completely from pages where comments are disabled.
     
  2. Gourav

    Gourav Support Staff

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

    Paste this code in Custom CSS
    Appearance > Theme Option > Styling Option > Custom CSS

    Code:
    #commentsbox{
    display:none;
    }
    .side_content h3 {
    display: none;
    }
     
  3. pham

    pham New Member

    Joined:
    Sep 16, 2013
    Messages:
    14
    Likes Received:
    0
    I tried adding in that code and it seems to have no effect.

    Here is an example of what a page looks like with comments ENABLED:

    http://ei-ca.com/about-eica/
    Here is another example of what a page looks like with comments DISABLED:

    http://ei-ca.com/location/

    As you can see at the bottom of the page, the "Comments and Responses" header is still there.
     
  4. Piyush

    Piyush Support Staff

    Joined:
    Dec 8, 2012
    Messages:
    4,745
    Likes Received:
    107
    Hello,

    Go to the page.php file present in your theme directory and remove the code as shown in the image given below.

    [​IMG]


    This will solve your issue.
     
  5. blackdog2020liz

    blackdog2020liz Member

    Joined:
    Dec 18, 2012
    Messages:
    264
    Likes Received:
    5
    Location:
    Western Australia
  6. Piyush

    Piyush Support Staff

    Joined:
    Dec 8, 2012
    Messages:
    4,745
    Likes Received:
    107

Share This Page