Free Directory, Listing & Classifieds WordPress Plugin Support Themes ListingHive Add one or two columns in categories

Add one or two columns in categories

  • Author
    Posts
  • david2

    Hello, thank you very much for this nice plugin. I have a question about the list by category:I deleted the left part:
    code:
    .hp-template–listings-view-page .hp-page__sidebar {display:none}
    .hp-template–listings-view-page .hp-page__content {flex-basis:100%; max-width:100%} .hp-template–listings-view-page .hp-page__content
    Is it possible to add one or two columns? Since there is more space, I would like three or four ads per row. Thank you in advance and have a nice day.

    ihordeveloper

    You can try using this PHP snippet:

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

    Thanks very much

Viewing 3 posts - 1 through 3 (of 3 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.

Cyber Monday is here! Get 25% off with MONDAY2020 coupon code until Monday, December 7.