Skip Navigation

[Resolved] Search form design

This support ticket is created 5 years ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 4 replies, has 2 voices.

Last updated by Christian Cox 5 years ago.

Assisted by: Christian Cox.

Author
Posts
#1526497
スクリーンショット 2020-02-25 17.23.32.png
スクリーンショット 2020-02-25 17.28.05.png
スクリーンショット 2020-02-25 17.23.50.png

I want the search form to be as simple as image 2, but it looks like image 1.
I have no knowledge of CSS.
Even if you look at the support Youtube, by default it has a search form like image 2.
Is there a reason for this?
Please let me know if there is any way.

#1527487

I'm not sure I understand what you mean by "simple", can you explain a bit more? Do you want to add columns to your search filter design, so that the select fields do not extend the full width? You can use grid cells to create rows and columns in the search filter editor, then place search filters in those grid cells.

#1528029
スクリーンショット 2020-02-26 14.50.07.png
スクリーンショット 2020-02-26 14.49.55.png

I want to create a search form with a design like image 1.
Image 2 was created with VIEW.
Should I create with toolset block?
Can you make it without CSS knowledge?

Also, even if you make a loop design with 4 columns with toolset block, if you put VIEW on fixed page with elementor, it will be 1 column.

#1528051
名称未設定-11.jpg

reference
referenceˈref(ə)rəns

#1528931
Screen Shot 2020-02-26 at 11.37.50 AM.png

In Views, you can add a <br /> tag between the label and the filter shortcode to create a line break. For example:

<div class="form-group">
	<label for="wpv-wpcf-book-select-1">[wpml-string context="wpv-views"]Book Select 1[/wpml-string]</label><br />
	[wpv-control-postmeta field="wpcf-book-sel-1" url_param="wpv-wpcf-book-sel-1"]
</div>

To adjust the width of the select field to make it 100% width, you will probably need some custom CSS. To add columns, you will need some HTML and CSS.

If you create the View in Blocks, then you can use the Grid block to create column designs without HTML or CSS, but you don't have the same fine-level control over the search form design. You are limited to the styling options provided in Blocks. I am attaching a screenshot here showing the different design options provided for a select field filter. You can see margin, padding, and border options but no full-width or percentage width option. To achieve that style you would need some CSS knowledge.