Quantcast

How To Customize {0 Comments} In Thesis

Filed Under: Tech/Videos/Video Games
Share:

Over the past month, I’ve been redoing a site and I’m just about done.

OsakaBen

However, there was one part that kept me crossing my eyes and aimlessly searching the Google for a solution: How the heck do you change the text of {0 Comments} on the front page of the Thesis theme?!

My personal solution–on this site and on Sims 3 Gamer–was to just kill the comments on the main page. Click on the post to leave a comment if you’re curious how many comments it has…or doesn’t have.

But the client wanted something different and I was up for the challenge.

This is what it looked like before I did anything:

And this is what it looks like now:

And this is what I did:

Put this at the bottom of your custom_functions.php file in the Custom File Editor under your Thesis tab–or via FTP if you’re feeling snazzy.

/* CUSTOM COMMENT LINK AND IT'S AWESOME */

function awesome_comments() {
if (is_home()) { ?>
        


Obviously, you'll want to change the, "{ Click Here & Be Awesome }" part.

Then, cause the underlined links were bugging me, I put this at the bottom of the custom.css file:

/* KILLS THE LINK UNDERLINE */
.format_text a {
text-decoration: none;
}

If you want to get rid of that {0 comments} jobber completely, just put this at the bottom of your custom_functions.php file:

remove_action('thesis_hook_after_post', 'thesis_comments_link');

And you're done!

Hopefully, this will save many a forehead from the ravages of desktops everywhere.

Comments

  1. Oh dude, if I can get this to work for the Read It section of my site, I’m going to be THRILLED. Thanks!

    • I won’t tell you how long it took me to figure this out; I’m slightly embarrassed by the amount of time. 😀

      Hope it works.

  2. I will play around with this next weekend. Thank you so much for sharing the code. My issue with “Comments” is that I want it moved to the bottom of the post, but am not savvy enough at coding to know how.

    Would you mind sharing additional code to make sure the “Comments” print out at the bottom of the post .

    I recently added a “facebook like button” and it is currently at the bottom of the post and I don’t like it there — I want the “Comments” there.

    Thanks for reading and for your time.

    • Sorry for the delay; the holiday weekend kind of grabbed me and wouldn’t let go.

      I checked out your site and are you wanting {0 Comments} below the Facebook like chiclet? And do you want this only on single posts?

Trackbacks

  1. RT @theamytucker: How To Customize {0 Comments} In Thesis http://bit.ly/dJdd3w #tutorial #wordpress #thesis

Speak Your Mind

*