Archived topic
Page Header/Hero and Category Descriptions
5 replies · Started by Lewis on September 14, 2018
Hi,
I am trying out the Page Header Elements for the first time using a Page Hero with a display rule set to "Post Category Archive".
This seems to be removing the Category Description section from the page.
I have a function to allow HTML inside of the category descriptions, which allows the category pages to contain more content etc.
Is there a way to display the Category Description along with the Page Hero Header?
Thanks!
Hi there,
thats not the normal behaviour, so can you 'disable' the HTML description function and let me know if the normal description is displayed?
Hi David,
I tried your suggestion and still no joy.
Here is the single line I am using in the functions.php to allow the HTML in descriptions:
remove_filter('pre_term_description', 'wp_filter_kses');
However, with that removed and plain text entered into the description field, it still doesn't appear. However, when I turn the Element off...it works fine.
Thanks,
Lewis
Do you have any other Elements in place? Such as Hooks?
No other elements are being used
Aah my bad, are you are using the {{post_title}} template tag in the header?
If so can you just remove that and place some static text.