How can we improve WooThemes?

Canvas Category Description

with Canvas archives settings, please add an option to display category description on the page.

9 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    Eric SoppEric Sopp shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    5 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      Submitting...
      • Sean DawesSean Dawes commented  ·   ·  Flag as inappropriate

        Any chance you can do this to accept html from the category description field?

      • Elliot TaylorElliot Taylor commented  ·   ·  Flag as inappropriate

        This should do it. Add to functions:

        /* Change Archive Template H1 */

        add_filter( 'woo_archive_title', 'new_woo_archive_title' );

        function new_woo_archive_title () {

        $category = single_cat_title("", false);
        $new_title = '<h1 class="archive_header">'. $category .'</h1>' . '<div class="new-archive-description">' . strip_tags(category_description($category_id)) . '</div>';

        return $new_title;

        } // End filter

      • BryceBryce commented  ·   ·  Flag as inappropriate

        You can accomplish this by adding the echo category_description(); to the taxonomy loop for example.

      Feedback and Knowledge Base