[Resolved] Category archive description no longer displays when page header enabled

Home Forums Support [Resolved] Category archive description no longer displays when page header enabled

Home Forums Support Category archive description no longer displays when page header enabled

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1372929
    Rachel

    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

    #1373039
    David
    Staff
    Customer Support

    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>' ); ?>

    #1373403
    Rachel

    Great, that works a treat, appreciate your help.

    #1373425
    David
    Staff
    Customer Support

    You’re welcome

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.