Move category description under the posts in X

Hi Support,

I got my archive description displayed on this page: https://dewasmachinevergelijker.nl/wasmachine-blog/. I would like to have the description below the posts excerpts and with a white background. Now it displays above the breadcrumbs in grey.

Can you help me? I’m using X and I already have a child theme where I inserted the following code in the functions.php to show the category in the first place:

// Add post Category Titles
// =============================================================================
function add_category_titles(){ ?>

<?php if ( is_category() || x_is_portfolio_category() ) : ?> <?php $meta = x_get_taxonomy_meta(); $title = ( $meta['archive-title'] != '' ) ? $meta['archive-title'] : __( 'Category Archive', '__x__' ); $subtitle = ( $meta['archive-subtitle'] != '' ) ? $meta['archive-subtitle'] : __( "Below you'll find a list of all posts that have been categorized as ", '__x__' ) . '“' . single_cat_title( '', false ) . '”'; ?>
<header class="x-header-landmark x-container max width">
<h1 class="h-landmark"><span><?php echo $title ?></span></h1>
 <p class="p-landmark-desc"><span><?php echo category_description(); ?></span></p>
<?php endif; } add_action('x_after_view_global__slider-below', 'add_category_titles');

// =============================================================================

Thank you in advance.

Hello @robinweber1989,

Thanks for writing to us.

Regretfully the features that you want would require custom, I would suggest you please contact a developer who can assist you with your concerns or you can subscribe to One where customization questions are answered. Please note we don’t provide custom development support. It is out of the support scope.

Thanks for understanding

Hi @prakash_s,

I see this whole forum filled with people who received help on this part. Doný you think it is strange that displaying a category description, a core functionality of Wordpress, is outside the scope of the Theme? I hope you still want to have a look at what code I can implement in my child theme to move it down.

Hi @robinweber1989,

What you are expecting requires some custom development, and that is beyond the scope of Theme Support. I would also suggest you hire a developer or avail of One, where we answer the questions beyond normal theme support.

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.