Skip Navigation

[Resolved] Advanced Search in wrong place on mobile devices

This thread is resolved. Here is a description of the problem and solution.

Problem:
On the reference site "MultiLingual real Estate", the Advanced Search appears on a worng place when viewing the site on Mobile Screens.

Solution:
This is solved in the current Real Estate refernce sites.
Please update the Site or change the Code of your current site according the Changes made on the reference site.

The changes added are really cosmetic:

1. Added class

advanced-search-column

to search column with advanced search link

2. Added styles to that column:

top margin

and

p bottom margin

so that it is positioned like in the ScreenShot Attached
https://d7j863fr5jhrr.cloudfront.net/wp-content/uploads/2016/05/399012-image2_1.png

3. Made advanced search column to be the last one before search button in the visible part of the search form.

This support ticket is created 7 years, 11 months 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 4 replies, has 2 voices.

Last updated by Mark Dally 7 years, 11 months ago.

Assisted by: Beda.

Author
Posts
#398205
IMG_2169.PNG

Hi - please refer to example theme: hidden link

Particularly the parametric search as viewed on tablet or mobile device.

The "Advanced Search" renders in the wrong place - it is wedged between the Garage and basements fields and the Property Types. But interestingly, when activated, the drop down IS in the right place.

I've been playing with the CSS to try and fix it (i.e. move it underneath Property Types where I think it should be) but it doesn't seem straight forward to me and I keep messing it up.

I'm hopeful perhaps you can offer some replacement CSS??

#398406

Well, I see a issue in that HTML

1. You render col-sm-4 in a row.
By default, a Bootstrap row holds 12 cells.
So, you could include 3 col-sm-4 div's in a row, and those display inline-
Every additional one will fall below the first 3

2. If you instead code a new Row, and include again your cell's (div class="col-sm-4" as example) you can have those new cells always in a new row.

3. To finalize, I would create 3 Rows.
First row holding 3 "4 col" div
Second row holding 2 "6 col" div's
And then a last row, again with 2 "6 col" divs, first holding the link to conditionally show the additional advanced search, second to hold the submit button

I also reported this to our Reference Site Developers to adjust it.

Thank you for reporting it.

#398869

I Beda,

Thank you - my limited CSS has most of your suggestion working okay - but lacking a few finer points - and I can't get the columns within the rows to look the way I want.

I understand this might be a custom fix, but in the meantime, can you kindly advise when the demo is updated so I can see where I am going wrong?

Thanks you,
Mark

#399012
image2.png

As I received feedback from our DEV:

In hyper-accurate Bootstrap world it is true what I stated above:
we should have 3 separate rows.
But as our DEV team decided,
we should not be enslaved by Bootstrap, we should use it to make our lives easier.

So as it comes to rows: It will stay like it is because it works exactly as I intended to.
As it comes to the link in the wrong place: You are right.

The changes added are really cosmetic:

1. Added class advanced-search-column to search column with advanced search link

2. Added styles to that column: top margin and p bottom margin so that it is positioned like in the ScreenShot Attached

3. Made advanced search column to be the last one before search button in the visible part of the search form.

The changes will be applied soon.

You may then use the fixed reference Site as a learning tool

#399045

Thank you very much for your speedy attention as it is one of the last things bugging me on my starter theme based site 🙂 I look forward to seeing the changes and I'll keep an eye out for them to be made.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.