Move Send message button up

Hi there!

I want to move that “Send message” button above everything else in the right sidebar. Please see the screenshot below to understand what I mean.

Is there a code snippet to achieve that?

Thank you

Please try this PHP snippet but please note that it can require further customization

add_filter(
	'hivepress/v1/templates/listing_view_page',
	function( $template ) {
		return hivepress()->helper->merge_trees(
			$template,
			[
				'blocks' => [
					'page_sidebar' => [
						'blocks' => [
							'message_send_link' => [
								'type'   => 'part',
								'path'   => 'listing/view/page/message-send-link',
								'_order' => 1,
							],
						
							'listing_actions_primary' => [
								'blocks' => [
									'message_send_link' => [
										'type' => 'content',
									],
								],
							],
						],
					],
				],
			]
		);
	},
	1000
);

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