Pull the Category Description ONLY if a description is available.
Copy this code and paste it in your HTML
<?php if (strlen(trim(category_description
())) > 0 && trim(category_description
()) != "<br />") { echo "<div id='catdesc'>";
echo category_description();
echo "</div>";
}
?>
Report this snippet
Comments
Subscribe to comments