Place location in Primary Page area instead of under the title

Hi there!

Currently the location text is placed directly under the title. I would like to place the location field inside the primary page area.

I’m talking about this text:

Is this possible?

Thank you!

Please clarify where to place the location field in the primary page area? Should it be above description or another place?

Sure. I created a new screenshot. Basically I want to move this Location text into the primary area on the right sidebar.

Hope it’s clearer now.

Thank you for your efforts

Thank you for your clarification. Please try this PHP snippet but please note that it can require further customization

add_filter(
	'hivepress/v1/templates/listing_view_page',
	function( $template ) {
		$template = hivepress()->helper->merge_trees(
			$template,
			[
				'blocks' => [
					'listing_details_primary' => [
						'blocks' => [
							'listing_location' => [
								'type' => 'content',
							]
						],
					],
					
					'page_sidebar' => [
						'blocks' => [
							'listing_location' => [
								'type'   => 'part',
								'path'   => 'listing/view/listing-location',
								'_order' => 5,	
							],
						],
					],
				],
			]
		);
		return $template;
	},
	1000
);

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