FILTER FORM ON THE SEARCH FORM

  • Author
    Posts
  • mutange34

    Hello Ihor, I had a question on how I can add a filter form with all my attributes to the search form on my homepage without having to put my homepage as listings page.

    mutange34

    Plus how can I solve the problem of some of my images being cropped? I would love to make all of them the same size on the listing page for uniformity.

    ihordeveloper

    Hi,

    1. Unfortunately, there’s no such option at the moment, but thanks for your suggestion, I’ll consider adding a block for displaying this form.

    2. Images are cropped to the center by default, but I plan to add settings for all images sizes, please try changing this via code snippets for now:

    add_filter(
    	'hivepress/v1/image_sizes',
    	function( $image_sizes ) {
    		$image_sizes['landscape_small'] = [
    			'width'  => 400,
    			'height' => 300,
    			'crop'   => [ 'center', 'top' ],
    		];
    
    		$image_sizes['landscape_large'] = [
    			'width'  => 800,
    			'height' => 600,
    			'crop'   => [ 'center', 'top' ],
    		];
    
    		return $image_sizes;
    	}
    );

    Please try changing the heights only. You can re-generate images once you add this snippet https://wordpress.org/plugins/regenerate-thumbnails/

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.