DIY Themes Forums  

Go Back   DIY Themes Forums > Thesis Theme > Thesis Customization Tips
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-18-2008, 05:33 AM
Junior Member
 
Join Date: Aug 2008
Posts: 9
Default Category Page Description

Here I am, doing my best to add to the documentation here.



When you set up a link to a category such as this one, which file would I need to edit to display the category description along with the category title at the top of the page?

Where now it says:

Code:
It's All Relative
-------------------------------------------------
(first post)
(second post)
I could have it say:

Quote:
It's All Relative
And here is my description of this dumb category, which I set in the back end of WordPress when I created the categtory.
-------------------------------------------------
(first post)
(second post)

Thank you,

Wendy
Reply With Quote
  #2 (permalink)  
Old 08-18-2008, 10:40 PM
Senior Member
 
Join Date: Jul 2008
Location: Connersville, IN
Posts: 2,244
Send a message via ICQ to kingdomgeek Send a message via AIM to kingdomgeek Send a message via MSN to kingdomgeek Send a message via Yahoo to kingdomgeek
Default

In archive.php, find this:

PHP Code:
<h1><?php single_cat_title(); ?></h1>
After it, add this on a new line:

PHP Code:
<?php if (category_description() != "<br />\n") : ?><div id="category_description"><?php category_description(); ?></div><?php endif; ?>
The output can then by styled via ".custom #category_description {}" in your custom.css file.
__________________
Rick Beckman, Kingdom Geek & Thesis Support Ninja (Forums Moderator)
[ Thesis Manual | Help, my posts don't show up! ]


Amazon Wishlist | My custom.css
Get Thesis! | Earn Cash as a DIY Affiliate!
Reply With Quote
  #3 (permalink)  
Old 08-20-2008, 12:15 AM
Junior Member
 
Join Date: Aug 2008
Posts: 9
Default Woo-hoo!

That is awesome - thanks!

Oh, wait - except for the fact that it isn't working... I'll work on it this evening...

Last edited by domestiquette : 08-20-2008 at 12:31 AM.
Reply With Quote
  #4 (permalink)  
Old 08-22-2008, 03:50 AM
Junior Member
 
Join Date: Aug 2008
Posts: 28
Default

I would like this feature as well. It doesn't work for me either. thanks
Reply With Quote
  #5 (permalink)  
Old 08-23-2008, 04:59 AM
Junior Member
 
Join Date: Aug 2008
Posts: 9
Default Bumping...

Bumping to see if anyone knows of a way to do this.

I hope my last post didn't seem rude - I edited later to add the second line; it wasn't intended to be sarcastic but on re-read it sounds a bit that way.
Reply With Quote
  #6 (permalink)  
Old 08-23-2008, 05:11 AM
Senior Member
 
Join Date: Jul 2008
Location: Connersville, IN
Posts: 2,244
Send a message via ICQ to kingdomgeek Send a message via AIM to kingdomgeek Send a message via MSN to kingdomgeek Send a message via Yahoo to kingdomgeek
Default

What about just adding this code:

PHP Code:
<div id="category_description"><?php category_description(); ?></div>
The rest of the code in the previously posted line was meant to prevent the container from appearing if a category doesn't have a description.
__________________
Rick Beckman, Kingdom Geek & Thesis Support Ninja (Forums Moderator)
[ Thesis Manual | Help, my posts don't show up! ]


Amazon Wishlist | My custom.css
Get Thesis! | Earn Cash as a DIY Affiliate!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 11:50 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0