Site logo

Archived topic

Category archive description no longer displays when page header enabled

3 replies · Started by Rachel on July 22, 2020

Viewing posts 1–4 of 4

Hi,

I have custom text for the Category archive pages using the TinyMCEAdvanced plugin. It has displayed fine, until I add a page header via elements, and then the text no longer displays.

Do you know why adding a page header would prevent the category archive text displaying? Alternatively, is there another way using elements to add custom text to a category archive page?

The URL provided shows the category archive as it used to display. THe other categories no longer have the text displayed.

Thanks,
Rachel

Hi there,

Header Elements remove the page header that contains the title and description.
You can use a before_main_content hook and add this PHP to put it back:

<?php the_archive_description( '<header class="page-header"><div class="taxonomy-description">', '</div></header>' ); ?>

Great, that works a treat, appreciate your help.

You're welcome

This archived topic is closed to new replies.