Free Directory, Listing & Classifieds WordPress Plugin 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?

    ihordeveloper

    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.

Subscribe

Sign In

Don't have an account? Register

Forgot password?

Register

Already have an account? Sign In

Forgot password?

Reset Password

Please enter your username or email address, you will receive a link to create a new password via email.