Archived topic
Odd situation using the "header" element
5 replies · Started by Henry on September 3, 2019
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!
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(); ?>
Excellent thanks very much!
You're welcome
Hi, Im using {{custom_field.description}}
in Elements Header for Archives Pages but not description is showing.
{{post_title}} works great
Any Help?
Can you open a new topic for your question?
Thanks :)