Remove Listing Created Date from Listing View Block

Trying to eliminate the Created Date for Listings within the Listing View Block. Added this code, but it doesn’t seem to be correct.

 * Remove Listing Created Date
	function( $template ) {
		return hivepress()->helper->merge_trees(
				'blocks' => [
					'listing_created_date' => [
						'type' => 'part',

Please try this CSS snippet

.hp-listing--view-block .hp-listing__created-date {
  display: none;

Of course, I knew you could do that via CSS, but I’d rather have a function to get rid of it. Isn’t there a way to do that using remove_filter or similar?

Please try to change the word part on content in your code snippet and then it should work too

It is recommended to use CSS for hiding elements because CSS snippets don’t affect the server performance, they are executed by the browser.

That worked great. I added the ability to remove the categories as well and all looking good.

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