free hit counters
If you are using Internet Explorer as your browser please be running at least IE 7 or above. This site does not support IE 6 or below. Go here for the latest free version including easy download and installation instructions If you want to make it real easy on yourself, download Firefox , the most popular browser in the world. It's free and simple. You'll be so glad you did.
May
19
2009

Remove comments are closed statement

If you want to get rid of this…

167

Put this in your custom.css…

.custom .comments_closed p {display: none ;}

If you want to remove that statement on only certain individual pages, check out how to style any page or post differently than all the rest HERE

Leaving a comment with code in it...

If you would like to leave a comment and you have examples of code you want to show, you must "escape the code". This allows the entire code to show correctly by inserting certain variable around certain tags to make them show. If you don't "escape the code" your code will show up broken, mangled, and it won't be able to be seen correctly. "Escaping the code" is very simple...

  1. Copy your code you want to show
  2. Click here to go to the site to escape the code
  3. Follow the directions, it's so easy
  4. Once you have the escaped code copied, paste it in the comments area where you want
  5. Now you can enjoy life


Go ahead, leave a comment...

{ 4 comments… read them below or add one }

Jeffrey Douglass May 25, 2009 at 5:29 pm

I have really enjoyed your website and tips. However I cannot seem to get the “remove comments are closed” to work on my website. I have followed your direction. I am using the latest version of Thesis and also using Thesis Open Hook, what am I doing wrong?

Reply

Nasty May 28, 2009 at 1:02 pm

Put the code in the custom.css not the open hook

Reply

Paul May 26, 2009 at 5:54 pm

Thanks for the tip.
It worked on the post page but not on the home/index page.
Any ideas why this would be the case.

Cheers
Paul

Reply

Nasty May 28, 2009 at 1:12 pm

Hmmm, try adding a conditional statement and a style sheet in your custom_functions.php file…

function homepage_stylesheet(){
if (is_front_page() || (is_home()) { ?>
<style type="text/css">
.comments_closed p {display: none ;}
</style>
<? }}
add_action(’wp_head’ , ‘homepage_stylesheet’);

Reply

Leave a Comment

Previous post: The easiest way to add a “clickable” header image

Next post: Add a date stamp with an icon on your post