Home Support General HivePress Number of columns in listings page

Number of columns in listings page

  • Author
    Posts
  • FerVara

    On listings page there’s a 2-column layout by default, can you help me with the code snippet to change it to 3 or 4 columns.. thanks..

    ihor developer

    Try this one:

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

    Please note that 3 listings may not fit on the same row, further customizations may be required.

    FerVara

    THANK YOU……. Excelent support

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

The topic ‘Number of columns in listings page’ is closed to new replies.

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.