[Resolved] Odd situation using the "header" element

Home Forums Support Odd situation using the "header" element

  • This topic has 5 replies, 4 voices, and was last updated 11 months ago by Leo.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1000571
    Henry

    Odd situation here…if I activate a “header” element on a category archive page then it strips away the description text that can be added to the category.

    Here’s what I mean, a category class of page has an ability to add text like this: https://prnt.sc/p1jqif

    This works great normally, but I wanted to add a header element, which loads fine BUT it removed the text…

    Any idea why?

    Thanks!

    #1000683
    David
    Staff
    Customer Support

    Hi there,

    if you use the {{post_title}} template tag in the header element then this strips the entry-header/page-header which in the case of archives also includes the description.

    You can include the description in the header element using this template tag”

    {{custom_field.description}}

    Or you can use a hook to display the description:

    <?php echo category_description(); ?>

    #1001315
    Henry

    Excellent thanks very much!

    #1001543
    David
    Staff
    Customer Support
    #1053023
    Matias

    Hi, Im using {{custom_field.description}}

    in Elements Header for Archives Pages but not description is showing.

    {{post_title}} works great

    Any Help?

    #1053127
    Leo
    Staff
    Customer Support

    Can you open a new topic for your question?

    Thanks 🙂

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