Join our new community forum for support & discussion

Join Now

Home Support Themes RentalHive Listings – Wrong Column Display

Listings – Wrong Column Display

  • Author
    Posts
  • artshareco

    Hi,

    I want to display only three listings at a time (Display in a Slider is enabled). I’ve selected 3 as a value in the ‘Columns’ field but the Listings block keeps showing 4 listings.

    ihor developer

    Hi,
    In the current version, only the full-width slider is available, so this option switches the regular/full-width slider layouts, if the slider is enabled it’ll take the whole screen width (calculating the number of columns dynamically).

    artshareco

    Ok, I understand. It would be great if you could limit the amount of listings shown at a time when the slider is enabled–in my case the site looks much better when 3 listings max. are displayed.

    artshareco

    I’ve figured out what it was. The Listings block had actually been showing 3 listings at a time but I added this snippet yesterday:

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

    I wanted to show 2 listing categories when a user clicks on ‘Add Listing’ but I don’t want to mess the way listings are displayed in the Listings block so I’ve decided not to use that snippet for the time being.

    ihor developer

    Thanks for sharing! If you mean limiting the total number of listings (not per slide) please try changing this in the block settings. Please note that if the slider option is enabled there should be enough listing to cover the screen width.

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

New Reply

This forum has been archived and is no longer accepting new posts or replies. Please join our new community forum for support & discussion.