Allow formatting in the category header

I requested a feature long time ago: Edits in Category page don't show up
In Jauary 23 you said that next theme update will bring that feature, but now that I updated the theme, it didn’t fix the problem.

Yes, sorry for the delay, currently there are more urgent updates and we have limited time resources at the moment. Please let me know if a temporary fix will work for you, we can provide the instructions.

Okay, please provide instructions.

Hi,

You need to make changes to this file /hivepress/listing-category/page/listing-category-header.php through a child theme in the file you need to change esc_html( $listing_category->get_description() ); to apply_filters('the_content', $listing_category->get_description() );

​I hope this is helpful to you.

Thank you. Now the line breaks started to work, but the links still don’t work. It’s the links that I want to get working (for SEO reasons).

Hi,

Please use this PHP snippet too:

add_filter(
	'hivepress/v1/models/listing_category',
	function( $model ) {
		$model['fields']['description']['editor'] = true;

		return $model;
	},
  1000
);

Thank you, that fixed the issue. It didn’t change the color of the anchor, but that’s no problem, I can edit that in WYSIWYG.

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.