Skip Navigation

[Resolved] View filter inline

This support ticket is created 4 years, 1 month 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 11 replies, has 2 voices.

Last updated by LennyS7960 4 years, 1 month ago.

Assisted by: Minesh.

Author
Posts
#2006261
demo.png

Tell us what you are trying to do?
Hi, I have a toolset view made with shortcodes and they are one below another. For example:
TEXT SEARCH
TAXONOMY FILTER
ANOTHER FILTER

But I would want them to be in columns. For example:
TEXT SEARCH | TAXONOMY FILTER | ANOTHER FILTER

Is there any documentation that you are following?

Is there a similar example that we can see?
Like in a demo I attached they are in 4 columns. I understand that this is made with block editor, but I have shortcode editor.
What is the link to your site?

#2006385

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

You should use the bootstrap to divide your row into columns.

For example:

<div class="row">
    <div class="col-md-3">
      <h4>A summer special</h4>
      
    </div>
    <div class="col-md-3">
      <h4>Annual results published</h4>
      
    </div>
    <div class="col-md-3">
      <h4>Our first red product</h4>
      
    </div>
    <div class="col-md-3">
      <h4>Our most popular product</h4>
      
    </div>
  </div>

You should use above code and adjust the filters inside accordingly.

Please check the following ticket that may help you as well:
=> https://toolset.com/forums/topic/display-search-filters-in-bootstrap-columns/

#2006613
pic.png

I made this:

[wpv-filter-start hide="false"]
[wpv-filter-controls]
<div class="container">
  <div class="row">
      <div class="col-md-4">
              [wpv-filter-search-box placeholder="Search..." output="bootstrap"]
      </div>
      <div class="col-md-4">
              <label for="wpv-izpilditaju-sastavs"></label>
              [wpv-control-post-taxonomy taxonomy="izpilditaju-sastavs" type="select" default_label="*****" url_param="wpv-izpilditaju-sastavs"]
      </div>
      <div class="col-md-2">
              <label for="wpv-wpcf-komponesanas-gads_min">[wpml-string context="wpv-views"]Year from[/wpml-string]</label>
              [wpv-control-postmeta field="wpcf-komponesanas-gads" placeholder="1946" url_param="wpv-wpcf-komponesanas-gads_min"]
		</div>
      <div class="col-md-2">
              <label for="wpv-wpcf-komponesanas-gads_max">[wpml-string context="wpv-views"]to[/wpml-string]</label>
              [wpv-control-postmeta field="wpcf-komponesanas-gads" placeholder="2021" url_param="wpv-wpcf-komponesanas-gads_max"]
		</div>
	</div>
</div>
[/wpv-filter-controls]
[wpv-filter-end]

I attached picture what it looks like.
1. With col-md-4 and col-md-2 I tried to make the first 2 columns larger, but they all are kinda diffferent sizes.
2. The labels "Year from" and "to" I want to be to the left of its box.

#2007087

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Please check the different Bootstrap grid examples with the following link and you should adjust your code accordingly:
=> hidden link

#2007091

I did follow the examples. I don`t understand why the first 2 columns aren`t 4 units wide and other 2 columns aren`t 2 units wide.

#2007095

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Can you please share problem URL and admin access details.

So, you want one row with four columns and you want to divide four columns to two group of two?

Maybe you can share a screenshot of your expected output.

#2007249

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Can you please check now: hidden link

I've adjusted the code for "Search and Pagination" section as given under:

[wpv-filter-start hide="false"]
[wpv-filter-controls]
<div class="container">
  
 
  <div class="row">
    <div class="col-md-4">
     <div class="form-group">
      <label for="wpv-search">&nbsp;</label>
	[wpv-filter-search-box placeholder="Search..." output="bootstrap"]
</div>
    </div>
    
      <div class="col-md-4">
        <div class="form-group">
              <label for="wpv-izpilditaju-sastavs">&nbsp;</label>
              [wpv-control-post-taxonomy taxonomy="izpilditaju-sastavs" type="select" default_label="*****" url_param="wpv-izpilditaju-sastavs"]
        </div>
      </div>
      <div class="col-md-2">
        <div class="form-group">
              <label for="wpv-wpcf-komponesanas-gads_min">[wpml-string context="wpv-views"]Year from[/wpml-string]</label>
              [wpv-control-postmeta field="wpcf-komponesanas-gads" placeholder="1946" url_param="wpv-wpcf-komponesanas-gads_min"]
		</div>
    </div>
      <div class="col-md-2">
        <div class="form-group">
              <label for="wpv-wpcf-komponesanas-gads_max">[wpml-string context="wpv-views"]to[/wpml-string]</label>
              [wpv-control-postmeta field="wpcf-komponesanas-gads" placeholder="2021" url_param="wpv-wpcf-komponesanas-gads_max"]
        </div>
		</div>
	</div>
</div>
[/wpv-filter-controls]
[wpv-filter-end]

Can you please confirm it works at your end.

#2007407

The columns are still diferent sizes. I understand that the columns 1,2 are 4 units and columns 3,4 are 2 units. But they all are different sizes. 3rd column with label: "Year from" is randomly the largest.

#2007505

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Well - you need to customize it based on Bootstrap grid and you may require to add custom CSS.

If you do not know how to do it, you may contact pro CSS/Bootstrap expert who can guide you to build your customized search form.

#2007537
result.png
w3c.png

I copied the grid code from w3c example and it doesn`t behave the same. On here it just ignores the grid size and makes everything the size of its content.

#2008381

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Can you please check now: hidden link

You did not activated the bootstrap loading setting available at: Toolset => Settings => General tab => Bootstrap loading => Toolset should load Bootstrap 3

I've activated it and I can see its working as expected.

#2008493

My issue is resolved now. Thank you!