• Resolved seanrnelson

    (@seanrnelson)


    Hello,

    How can I allow the category descriptions to appear when I’m on a particular category page (site.com/category/example-category).

    I looked through your previous support tickets but couldn’t find anything. Thanks for your help!!!

    Best,
    Sean

Viewing 9 replies - 1 through 9 (of 9 total)
  • Theme Author Richie KS

    (@rkcorp)

    create a new php file in wp-content/ and name it meso-custom-functions.php

    correct path would be wp-content/meso-custom-functions.php and add this code

    or direct add them in functions.php

    <?php
    function dez_add_cat_desc() {
    $get_catdesc = category_description(); if($get_catdesc):
    echo '<div style="margin:-20px 0 0 0;" class="catdesc">'.$get_catdesc.'</div>';
    endif;
    }
    add_action('bp_after_headline', 'dez_add_cat_desc');
    ?>
    Thread Starter seanrnelson

    (@seanrnelson)

    Hi Richie, thanks for you help. I input the function into the functions.php folder but am receiving this error message:

    Warning: Cannot modify header information – headers already sent by (output started at /home4/zapp/public_html/lacrossescoop.com/wp-content/themes/mesocolumn/functions.php:371) in /home4/zapp/public_html/lacrossescoop.com/wp-includes/pluggable.php on line 1121

    Thanks,
    Sean

    Did you copy Richie’s code exactly as written into functions.php? If so, you don’t need to include the opening and closing PHP blocks: <?php and ?>.

    Thread Starter seanrnelson

    (@seanrnelson)

    Richie, I additionally tried the other method you suggested by adding a file in wp-content/ titled custom-functions.php and added the code you provided. No error message, but the categories aren’t displaying the description.

    My site is https://www.lacrossescoop.com for your records.

    Thanks,
    Sean

    Theme Author Richie KS

    (@rkcorp)

    should be meso-custom-functions.php not custom-functions.php
    and you need to use at least v1.5.3 mesocolumn.

    Thread Starter seanrnelson

    (@seanrnelson)

    Richie, thank you again for you support.

    I’m running v1.6.3 of Mesocolumn

    I have tried both methods of adding the code you provided me to functions.php file and removing the PHP blocks: <?php and ?> as well as creating a file at wp-content/ of meso-custom-functions.php. Neither are showing the category description.

    Just for clarification, here is the code you provided me:

    <?php
    function dez_add_cat_desc() {
    $get_catdesc = category_description(); if($get_catdesc):
    echo '<div style="margin:-20px 0 0 0;" class="catdesc">'.$get_catdesc.'</div>';
    endif;
    }
    add_action('bp_after_headline', 'dez_add_cat_desc');
    ?>

    Theme Author Richie KS

    (@rkcorp)

    its working for me tho
    hxxp://demo.dezzain.com/category/featured/
    see the
    This is a featured category descriptions – abcdefghijklmnopqrstuvwxyZ

    try remove the code from functions.php and download this zip, extract and upload to wp-content/

    Theme Author Richie KS

    (@rkcorp)

    you need to enable ‘archive header’ in theme option->post setting first.

    Thread Starter seanrnelson

    (@seanrnelson)

    Aha! Thank you very much for your help! You are providing one of the most supported free themes available. Keep it up Richie!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Allowing Category Descriptions’ is closed to new replies.