Skip Navigation

[Resolved] Styling The New Maps Distance Filters To Be Inline

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

Problem:
I love the new radius filter for the Maps plugin, but I can't figure out how you styled it to be inline as you did in the Real Estate site demo.

Solution:
You can make it inline by using following CSS as in below screenshot:
https://cdn.toolset.com/wp-content/uploads/2017/12/597145-filters_1.png?x41285

.form-group > label {
    display: block;
}
 
.form-control.js-toolset-maps-distance-value.js-wpv-filter-trigger-delayed {
    display: inline-block;
    width: 10%;
}
 
.js-toolset-maps-distance-unit.form-control.js-wpv-filter-trigger {
    display: inline-block;
    width: 10%;
}
 
.form-control.js-toolset-maps-distance-center.js-wpv-filter-trigger {
    display: inline-block;
    width: 40%;
}

You can adjust widths according to your need.

This support ticket is created 6 years, 5 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
- 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 -
- 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 6 replies, has 3 voices.

Last updated by sinisaB 6 years, 5 months ago.

Assisted by: Noman.

Author
Posts
#597046
Screen Shot 2017-12-08 at 3.00.29 PM.png

Hi,

I love the new radius filter for the Maps plugin, but I can't figure out how you styled it to be inline as you did in the Real Estate site demo screenshot here:

https://toolset.com/documentation/user-guides/display-on-google-maps/displaying-markers-on-google-maps/#filtering-markers-by-distance

By default the fields are stacked like this:
hidden link

It looks like there are no classes I can access to easily put these fields inline. Or am I missing something?

Tim

#597085

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi Timothy,

Thank you for contacting Toolset support.

1. Can you please provide the front-end link to the page where I can see the map fields and filter and back-end screenshot of the View?

2. Also can you please share your Debug Information with us so we can see it? I have enabled debug info box for your next reply:
https://toolset.com/faq/provide-debug-information-faster-support/

Thank you

#597092
Screen Shot 2017-12-08 at 5.26.28 PM.png
Screen Shot 2017-12-08 at 5.26.32 PM.png
Screen Shot 2017-12-08 at 5.26.37 PM.png

Sure, I've attached screenshots of the View and here's the front-end page:

hidden link

Tim

#597145

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

filters.png

Hello Timothy,

You can make it inline by using following CSS as in attached screenshot:

.form-group > label {
    display: block;
}

.form-control.js-toolset-maps-distance-value.js-wpv-filter-trigger-delayed {
    display: inline-block;
    width: 10%;
}

.js-toolset-maps-distance-unit.form-control.js-wpv-filter-trigger {
    display: inline-block;
    width: 10%;
}

.form-control.js-toolset-maps-distance-center.js-wpv-filter-trigger {
    display: inline-block;
    width: 40%;
}

You can adjust widths according to your need.

Thank you

#597300

Excellent, that works.

Thanks,

Tim

#620947

Can you help me (for those who don't know much)! ?

I get filter "by distance" code, and submit and reset button...

[wpv-filter-start hide="false"]
[wpv-filter-controls]
[wpv-control-distance default_distance="50" compare_field="lokacijski-podaci" distance_center_url_param="toolset_maps_distance_center" distance_radius_url_param="toolset_maps_distance_radius" distance_unit_url_param="toolset_maps_distance_unit"]
[wpv-filter-submit name="Search" output="bootstrap"][wpv-filter-reset output="bootstrap"] [/wpv-filter-controls]
[wpv-filter-end]

So how to add now CSS below to looks inline like on real estate ref. site?
CSS above doesn't work for me well...

P.S. Also how can I translate phrase "Search results in" etc. and how can I put search filter below map, now is above...?

Thanks in advance,
Sinisa

#621696

Don't need to, solved...

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