Show the listing image instead of the vendor image


Hi,
Please try this PHP snippet (How to add custom code snippets - HivePress Help Center):

add_filter(
	'hivepress/v1/templates/listing_view_block/blocks',
	function( $blocks, $template ) {
		return hivepress()->helper->merge_trees(
			[ 'blocks' => $blocks ],
			[
				'blocks' => [
					'listing_image' => [
						'path' => 'listing/view/block/listing-image',
					],
				],
			]
		)['blocks'];
	},
	1000,
	2
);

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