Hi everyone,
I’ve spent a couple of hours searching through the KB, youtube and google and I can’t find the answer.
I have X Pro and I am just trying to include the category description on the category page, so that when someone clicks on the category, a page shows up with the description of the category and the archived posts linked to that category. It seems like something so simple, but is almost impossible.
So far I have installed a plug in (Enhanced Category Pages), but that doesn’t work.
I’ve created a child theme and edited the functions.php to include:
function show_category_description() {
if( is_single() ){
$catID = get_the_category();
$description = category_description( $catID[0] );
echo “
$description
}
}
add_action( ‘x_after_masthead_end’, ‘show_category_description’ );
I am very new to website building and CSS and this is all way beyond me. I feel like there should be an easy solution but every support post I’ve seen has a staff member saying that it would require developmental support to change. That seems absurd.
Does anyone know how to fix this?
Thanks