Home Support Themes ListingHive Theme widget above fitler widgets

Theme widget above fitler widgets

  • Author
    Posts
  • vheo

    Hello, how can i change order and put widgets set by theme customizer above listing filters?

    ihor developer

    Hi,

    This code snippet should work:

    add_filter(
    	'hivepress/v1/templates/listings_view_page',
    	function( $template ) {
    		return hivepress()->helper->merge_trees(
    			$template,
    			[
    				'blocks' => [
    					'page_sidebar_widgets' => [
    						'_order' => 5,
    					],
    				],
    			]
    		);
    	}
    );

    Please check the HivePress API reference in the docs, its pretty intuitive and you can customize basically anything (templates, forms, URLs etc) with actions and filters.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.