Add the vendor block to top of the account sidebar

Is it possible to display at the top of the page
https://maydomain/account/vendor/ the vendor widget?
It is very useful for when users enter https://maydomain/account/vendor/ they feel comfortable seeing their profile picture


Please try this PHP snippet to add a vendor block to the sidebar section.


	function ( $blocks ) {
		return hivepress()->template->merge_blocks(
				'page_sidebar' => [
					'blocks' => [
						'listing_vendor' => [
							'type'     => 'template',
							'template' => 'vendor_view_block',
							'_order'   => 0,

Have a nice day.

Works perfectly mate! Thank you!!

1 Like

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