Support » Themes and Templates » How to remove comment box but leave Facebook comment plug-in

  • ohdearism

    (@ohdearism)


    Hi!

    I have a Swift Theme site and generally I’m very pleased with it but there are some things that are really annoying me.

    Most of all I really want to delete the standard comment box at the bottom of each post but have my Facebook comment box, which I installed as a plug-in. When I delete the code on the single page editor for the comment box, both disappear.

    Surely other people who have Facebook comment boxes have the same issue? It looks crowded to have both!

    Thanks so much in advance for your help guys!

    My site is http://www.ohdearism.com

    x

Viewing 11 replies - 1 through 11 (of 11 total)
  • semokims

    (@semokims)

    I am confuse too. I hope my wedsite casual wedding dresses will become popular more and more..

    Alwyn Botha

    (@123milliseconds)

    seems fixed ?

    Thread Starter ohdearism

    (@ohdearism)

    No because there are two comment boxes at the end of each post… one facebook one (which I want to keep) and one standard one (which I want to delete without losing the FB one)

    Thanks for your help

    I am also wondering how I can remove the standard “Leave a Reply” or comments box at the end of each post. If anyone can help, it would be appreciated.

    I am too also wanting to know how to remove the “Leave a Reply”, remove all the comment boxes and the submit button. If you remove these of the commments.php then you get a parse error, syntax error.

    Thanks

    For those of you looking to remove the “Leave a Reply”, the commment boxes and so on. I just found the answer. Got to the page.php and look for this line <?php comments_template(”, true); ?>, then delete just that line and save it. It will remove it all.

    dianem326, where do I go to the page.php? I am using a template and went to “editor” and didn’t see the string you have above.

    You will find the page.php in your FTP files under wp-content/themes/(name of your theme) files. Hope that helps.

    To remove Leave a reply from your single posts, you can go to single.php through your desk, click on edit, then single.php and delete this line: comments_template();
    from here:

    while (have_posts())  
    
     {
    
       the_post();
    
       get_template_part('content', 'single');
    
       comments_template();
    
    }

    I have the Theme Name: Andrea and I am trying to delete the “Leave the Comment” line on all posts and pages.

    For Example: Five Steps to Manage Stress in the Workplace Leave a comment

    I changed the comment setting on the Discussion tab but it didnt delete the comment form

    The current CSS is:

    Theme Name: Andrea
    Theme URI: http://lucianmarin.com/
    Description: A gorgeously minimal two-column theme with a flexible layout and an unusual blue color scheme.
    Version: 0.4-wpcom
    Author: Lucian E. Marin
    Author URI: http://lucianmarin.com/
    Tags: blue,white,dark,two-columns,left-sidebar,fixed-width,flexible-width,translation-ready,custom-background,custom-header,theme-options,custom-menu,rtl-language-support,sticky-post,blog,craft,photography,travel,clean,colorful,dark,generic
    */
    body {
    background-color:#00355f;
    border-top:5px solid #002a53;
    color:#d4e7f7;
    font-family:Verdana, Geneva, sans-serif;
    font-size:12px;
    margin:0;
    padding:0 0 15px;
    }

    * {
    margin:0;
    padding:0;
    }

    a {
    color:#87b2d8;
    text-decoration:none;
    }

    a:hover {
    color:#fff;
    }

    a img {
    border:0;
    text-decoration:none;
    }

    h1,h2,h3,h4,h5,h6 {
    font-family:”Lucida Sans Unicode”, “Lucida Grande”, sans-serif;
    font-weight:normal;
    }

    input,select {
    font-family:Verdana, Geneva, sans-serif;
    font-size:11px;
    }

    textarea {
    font-family:Verdana, Geneva, sans-serif;
    font-size:12px;
    background:#002a53;
    border-bottom:#004b8d 1px solid;
    border-left:1px solid #01284e;
    border-right:#004177 1px solid;
    border-top:1px solid #01284e;
    color:#fff;
    width:400px;
    padding:3px 5px;
    }

    abbr {
    border:none;
    }

    blockquote {
    border-left:#005595 1px solid;
    margin:0 0 0 20px;
    padding:0 0 0 10px;
    }

    .fixed-width #wrap {
    width:700px;
    margin:0 auto;
    }

    .fixed-width #header {
    width:690px;
    }

    .fixed-width #content {
    width:500px;
    }

    .fixed-width.attachment #content {
    width:700px;
    }

    .fixed-width #sidebar {
    width:180px;
    padding:0 15px 20px 5px;
    }

    .fixed-width #footer {
    width:680px;
    margin:0 auto;
    padding:10px;
    }

    .flexible-width #wrap {
    min-width:900px;
    max-width:1280px;
    margin:0 20px;
    }

    .flexible-width #content {
    width:78.125%;
    }

    .flexible-width.attachment #content {
    width:100%;
    }

    .flexible-width #sidebar {
    width:20%;
    min-width:180px;
    max-width:256px;
    padding:0 1.25% 20px 5px;
    }

    .flexible-width #footer {
    min-width:900px;
    max-width:1280px;
    margin:0 20px;
    padding:10px 15px;
    }

    #header {
    text-align:left;
    margin:10px 0;
    padding:0 5px;
    }

    #header h1 {
    color:#4e8abe;
    font-size:22px;
    letter-spacing:-1px;
    padding:10px 0;
    }

    #header h1 a {
    color:#fff;
    padding:3px 0 5px;
    }

    #nav {
    background:#002a53;
    position:relative;
    border-radius:10px;
    -moz-border-radius:10px;
    -webkit-border-radius:10px;
    font-size:13px;
    text-align:left;
    margin:0 0 10px;
    padding:5px;
    }

    #feed {
    float:right;
    padding:3px 10px;
    }

    #feed a {
    background:url(‘images/feed.gif’) right no-repeat;
    padding:0 24px 0 0;
    }

    #nav ul {
    position:relative;
    list-style:none;
    }

    #nav li {
    position:relative;
    float:left;
    border-right:#00355f 1px solid;
    }

    #nav li:last-child {
    border:none;
    }

    #nav ul li a {
    display:block;
    line-height:24px;
    padding:0 10px;
    }

    #nav ul ul {
    display:none;
    position:absolute;
    top:24px;
    left:0;
    float:left;
    z-index:99999;
    }

    #nav ul li:hover > ul {
    display:block;
    }

    #nav ul ul li {
    min-width:85px;
    }

    #nav ul ul ul {
    left:100%;
    top:0;
    }

    #nav ul ul a {
    background:#002a53;
    height:auto;
    line-height:1em;
    width:85px;
    padding:10px;
    }

    #nav ul li a:hover,#nav ul li:hover > a,#nav ul li.current_page_item > a,#nav ul li.current_page_parent > a,#nav ul li.current_page_ancestor > a,#nav ul li.current-cat > a,#nav ul li.current-menu-ancestor > a,#nav ul li.current-menu-item > a,#nav ul li.current-menu-parent a {
    color:#fff;
    }

    #content {
    float:right;
    text-align:left;
    }

    h2.entry-title {
    color:#6799c8;
    font-size:18px;
    padding:10px 0;
    }

    h2.archive-title,h2.page-title {
    color:#4e8abe;
    font-size:18px;
    padding:10px 0 5px;
    }

    .aligncenter {
    display:block;
    margin-left:auto;
    margin-right:auto;
    }

    .alignleft {
    float:left;
    }

    .alignright {
    float:right;
    }

    .navigation {
    color:#87b2d8;
    font-size:11px;
    margin:0 0 20px;
    }

    .navigation a {
    background:#002a53;
    display:block;
    color:#87b2d8;
    padding:4px;
    }

    .navigation.image a {
    padding:2px;
    }

    .entry-content {
    width:100%;
    overflow:hidden;
    }

    .entry-content.sticky {
    border-bottom:2px solid;
    }

    .entry-content h1 {
    font-size:21px;
    }

    #content .entry-content h2 {
    font-size:18px;
    padding:0;
    }

    .entry-content h3 {
    font-size:16px;
    }

    .entry-content h4 {
    font-size:14px;
    }

    .entry-content h5 {
    font-size:13px;
    }

    #content .entry-content h6 {
    font-size:12px;
    }

    .entry-content h1,.entry-content h2,.entry-content h3,.entry-content h4,.entry-content h5,.entry-content h6 {
    margin:0 0 15px;
    }

    .entry-content a:hover {
    color:#4e8abe;
    }

    .entry-content p {
    line-height:18px;
    margin:0 0 15px;
    }

    .entry-content ol,.comment-body ol {
    line-height:18px;
    margin:0 0 15px 30px;
    }

    .entry-content ul,.comment-body ul {
    line-height:18px;
    margin:0 0 15px 30px;
    }

    .entry-content ul ul,.entry-content ol ol {
    margin-bottom:0;
    }

    .meta {
    background:url(‘images/limit.gif’) bottom center no-repeat;
    font-size:11px;
    line-height:16px;
    color:#4e8abe;
    border-top:#005595 1px solid;
    margin:0 0 15px;
    padding:5px 10px 30px;
    }

    .meta strong {
    color:#6799c8;
    font-weight:normal;
    }

    .warning p {
    font-size:13px;
    border-left:#005595 1px solid;
    margin:0 0 0 20px;
    padding:0 0 0 10px;
    }

    #sidebar {
    float:left;
    font-size:11px;
    text-align:left;
    }

    #sidebar h3 {
    font-size:12px;
    font-weight:bold;
    margin:20px 0 5px;
    }

    #sidebar h3 a {
    color:#d4e7f7;
    }

    #sidebar ul {
    list-style:none;
    }

    #sidebar ul ul {
    margin:5px 0 0 10px;
    }

    #sidebar ul ul ul {
    margin:5px 0 0 10px;
    }

    #sidebar ul li {
    padding:0 0 5px;
    }

    #author h3 {
    margin:5px 0;
    }

    #sidebar li.widget {
    overflow:hidden;
    word-wrap:break-word;
    }

    input[type=text] {
    background:#002a53;
    border-bottom:#004b8d 1px solid;
    border-left:1px solid #01284e;
    border-right:#004177 1px solid;
    border-top:1px solid #01284e;
    color:#fff;
    margin-right:5px;
    padding:3px 5px;
    }

    input[type=text]:hover,textarea:hover {
    background:#004b8d;
    }

    #searchform {
    margin:15px 0 0;
    }

    #searchform #s,#sidebar form p {
    margin-bottom:5px;
    }

    #searchform input#searchsubmit,.form-submit input,input[type=submit] {
    background:#002a53;
    display:block;
    margin-bottom:5px;
    border:#004b8d 1px solid;
    color:#a0cbed;
    cursor:pointer;
    padding:3px 5px;
    }

    #searchform input#searchsubmit,.form-submit input:hover,input[type=submit]:hover {
    background:#004b8d;
    color:#fff;
    }

    .postinput small {
    font-size:11px;
    margin:0 0 0 5px;
    }

    p.logged {
    font-size:12px;
    }

    h3#reply-title,h3.reply {
    font-size:15px;
    margin:0 0 10px;
    }

    #footer {
    background:#002a53;
    position:relative;
    border-radius:10px;
    -moz-border-radius:10px;
    -webkit-border-radius:10px;
    color:#4e8abe;
    font-size:11px;
    text-align:left;
    }

    #top {
    float:right;
    }

    #top a {
    background:url(‘images/top.gif’) right no-repeat;
    padding:0 16px 1px 0;
    }

    .group:after {
    content:”.”;
    display:block;
    height:0;
    clear:both;
    visibility:hidden;
    }

    * html .group {
    height:1%;
    }

    :first-child+html .group {
    min-height:1px;
    }

    .screen-reader-text {
    display:none;
    }

    .entry-content img,.entry-content object {
    max-width:100%;
    }

    .entry-content table img {
    max-width:none;
    }

    .wp-caption {
    background-color:#001e42;
    max-width:100%;
    border:1px solid #00377c;
    text-align:center;
    margin:10px 0;
    padding:4px 0 0;
    }

    .wp-caption img {
    max-width:98%;
    border:0;
    margin:0 auto;
    padding:0;
    }

    .flexible-width .entry-content img {
    height:auto!important;
    }

    .wp-caption .wp-caption-text,.wp-caption-dd {
    font-size:11px;
    line-height:17px;
    margin:0;
    padding:5px;
    }

    .gallery {
    padding-bottom:20px;
    }

    .gallery img {
    background:#002a53;
    border:0!important;
    padding:2px;
    }

    img.alignleft {
    margin:0 10px 10px 0;
    }

    img.alignright {
    margin:0 0 10px 10px;
    }

    .wp-caption.alignleft,.wp-caption.alignright {
    margin:0;
    }

    .wp-caption.aligncenter {
    margin:0 auto;
    }

    #wp-calendar {
    padding:10px 0 0;
    }

    #wp-calendar caption {
    text-align:left;
    padding:0 0 3px;
    }

    #wp-calendar tr th,#wp-calendar tr td {
    text-align:right;
    padding:0 4px 0 0;
    }

    #wp-calendar td a {
    font-weight:bold;
    }

    #wp-calendar td a:hover {
    font-weight:bold;
    }

    .widget img.avatar {
    vertical-align:middle;
    }

    #wpstats {
    position:absolute;
    right:10px;
    }

    .slideshow-window {
    width:auto!important;
    max-width:100%;
    }

    * html .fixed-width .slideshow-window,* html .fixed-width .slideshow-slide img {
    width:100%;
    }

    .widget_flickr table {
    background-color:transparent!important;
    border:0!important;
    border-collapse:collapse;
    }

    .widget_flickr img {
    max-width:100%;
    }

    .fixed-width .widget_flickr img {
    max-width:180px;
    max-height:180px;
    }

    Thanks in Advance

    I have a plugin to get and post comments to Facebook. To remove the standard comments box from the bottom of each page I commented out the second to last line in the comments.php file for my theme.

    Go to Dashboard/Appearance/Editor and load the comments.php file from the right hand list. Scroll down to the bottom of the page and look for <?php comment_form(); ?>

    Edit the line to read <!– ?php comment_form(); ?>–>

    Click the Update File button.

    I now have the post followed by a Facebook comments box and a list of comments.

    Hope this helps 🙂

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘How to remove comment box but leave Facebook comment plug-in’ is closed to new replies.