How to add Category description in Classipress

It is a known fact in the internet marketing world that search engines love content. Users love content too and so we have to give them what they want if we want our site to grow. One way to add relevant content to your Classipress site is to describe the category with a few pharagraphs. You can add category description by going to your dashboard then choose Categories. From there you can simply type your category description.

How to add Category description in Classipress

However, Classipress does not display yet the Category description  and so here’s how you can do that just like the sample image above.

Go to your dashboard, then to Appearance and choose Editor. Edit the main index.php by finding first the code below;

<small><?php if(function_exists(‘bcn_display’)) { bcn_display(); } ?></small>

and paste this code after that;

<?php if ( is_category() ) : ?>
<?php add_filter(‘category_description’, ‘wpautop’); ?>
<?php add_filter(‘category_description’, ‘wptexturize’); ?>
<div id=”category-description”>
<?php echo category_description(); ?>
</div>
<?php endif; ?>

That’s it and you are done. Have a great day.

This entry was posted in Plugins and Mods and tagged . Bookmark the permalink.

3 Responses to How to add Category description in Classipress

  1. JD Morales says:

    Hi Admin,

    I’ve tried this on my local server, but all I get is a tool tip about the description of the category. Is it supposed to function that way?

    BTW, nice blog.

  2. admin says:

    I haven’t tested the code on local machine yet but I guess it will work just the same with my live site.

  3. JD Morales says:

    Hi admin,

    it’s me again. I saw your post on Classipress about how to add widgets to the footer. Somehow, I couldn’t get it to display properly on the footer.

    Could you please post a tutorial for that as well?

    Thanks in advanced.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word