WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How to remove all references to comment from static page? (9 posts)

  1. sth624
    Member
    Posted 9 years ago #

    I have turned off comments for posts, and removed all code referencing comments from the main template.

    I would also like to remove all references to comments from static pages, but have yet to dig up where I have to go to do this. See http://www.shws.net/journal/?page_id=26 for an example. I would like to remove the following the following lines:

    " No Comments "
    " No comments yet."
    "Sorry, the comment form is closed at this time."

  2. Mark (podz)
    Support Maven
    Posted 9 years ago #

    Do you have a 'page.php' file ?
    If so, that's the place to remove the feedback div from.

  3. sth624
    Member
    Posted 9 years ago #

    i have removed the feedback div from index.php -- but i still get the comment notations at the bottom of static pages. (see link in my post above)

    Also, static pages get the "filed under <<category>>" tagline at the bottom -- I don't believe this is correct? There is no way to choose categories when writing static pages -- it appears to pick catergory #1.

    I would like to remove that, too! thanks for your help.

  4. roterhund
    Member
    Posted 9 years ago #

    Try removing
    <div class="meta">
    <?php _e("Filed under:"); ?> <?php the_category(',') ?> — <?php the_author() ?> @ <?php the_time() ?> <?php edit_post_link(__('Edit This')); ?></div>

    And editing
    <?php endwhile; else: ?>
    <p><?php _e('Sorry, no posts matched your criteria.'); ?></p>

    to your liking, both in index.php

  5. sth624
    Member
    Posted 9 years ago #

    i'm fairly certain removing the "div class meta" would remove that line from my posts, too --

    my goal is to include that line for posts, but not for pages -- i'm beginning to wonder if this is a design issue in the theme I'm using (Clasikue) -- I just experimented with some other themes at the Theme Browser ( http://www.alexking.org/software/wordpress/theme_browser.php ) and I saw some pages with the meta, and some without - but all posts had the meta.

  6. Lorelle
    Member
    Posted 9 years ago #

    Every time you change themes, you will have to dig into the theme and remove all the references to comments. Pick one.

    The http://codex.wordpress.org/Pages article on WordPress Pages and template for Pages talks about how to create a page.php or edit the one you have so you can get rid of the comments there.

    After having a comment-less site (and not needing one, either) for over 10 years, I was extremely nervous about the comments feature in WordPress. Now, I'm thrilled and grateful. It adds another dimension of interaction to my site, adding to the content. We get few comments, and I'm fast on the comment delete button trigger for nonsense, but for the most part, they are a really nice feature. Trackbacks are really a great feature, lending credibility to an article.

  7. sth624
    Member
    Posted 9 years ago #

    i'm not completely against comments -- currently taking the conservative route because I'm still learning how to deal with the potential for comment spam -- once i understand that, i'll probably use comments.

    my biggest issue is how ugly the post page is in Clasikue - depressing, because it's otherwise a great theme for my needs. Seems the theme generates the same page you get if you click on the title of a post from the main page.

  8. Lorelle
    Member
    Posted 9 years ago #

    >>>Once I understand it, I'll probably use comments.<<<

    Yikes, well then keep your original Theme and all the changes you make around with the comments in them.

    I just checked your site from the link up top, and you have other problems going on, like the inability to even click a title on your page to get to the individual post, but let's stick with comments for the moment.

    In the lastest version (check DOWNLOADS at the top of the screen), without any plugins I got maybe 5-10 comment spams a week. I have a top page ranking site with over 700 articles. Before the latest version, it was a magnet for all freaks, whackos, and time wasters. Now, almost nothing. Comment spam, for the most part, is controlled and controllable.

    With no comment spam coming in, I started to get worried. What if the new process was cutting out GOOD comments? So I installed Paged Comment Editing Plugin from Coldforged which allows me to SEE what WordPress is catching. I was stunned at how little was actually coming through. Using the plugin, click on "include spam" and you will see what is being caught highlighted in a pink background. I can easily delete these, removing them from my database and saving some space. Nice.

    Then one day I got hit by about 25 viagra/casino spams. After several months with only the occassional irritant, I was pissed, so I added Bad Behavior Comment Spam Plugin. Again things trickled down to a nothing and I got paranoid again. Comments were being bounced by Bad Behavior before they even got to the comment stage, but it was "too quiet". So I added Bad Behavior Stats to My Dashboard so I could keep track of what it was doing. WOW, it was catching A LOT. On average, it nails 400 known comment spam spiders, robots, etc., weekly.

    But you see what happened? WordPress stopped the majority of the comment spam out of the package. I got paranoid when it wasn't there so I added plugins to help me deal with MY paranoia not with the lack of spam!

    Quit ripping and tearing up your Themes and pick a great one and enjoy the ride. Comment spam is the least of your problems with WordPress. Coming up with good content that attracts visitors and keeps them returning is YOUR biggest problem. ;-)

  9. sth624
    Member
    Posted 9 years ago #

    thanks for all your insight -- i appreciate all the info.

    i've just turned all my comment stuff back on for the time being - including linking from the post titles -- :)

Topic Closed

This topic has been closed to new replies.

About this Topic