Skip Navigation

[Resolved] I want to hide ‘SHOW RESULTS WITHIN’ text that comes up next to location.

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

Problem:
I want to hide 'SHOW RESULTS WITHIN' text that comes up next to location.

Solution:
To remove the unwanted text from your distance filter control you can use inputs_placeholder attribute as given under.

You can find proposed solution, in this case, with the following reply:
https://toolset.com/forums/topic/i-want-to-hide-show-results-within-text-that-comes-up-next-to-location/#post-910989

Relevant Documentation:

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

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 4 replies, has 2 voices.

Last updated by Minesh 6 years, 6 months ago.

Assisted by: Minesh.

Author
Posts
#909588

I want to hide 'SHOW RESULTS WITHIN' text that comes up next to location.
I also want to vertical align the words 'OF" that are before the the Location Field.

#909781

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Well - I think you can hide that text easily by adding some custom CSS. Could you please share problem URL so that I can check if its wise to use CSS here or we need to find any alternative solution.

#910765

Hi!

check it out here: hidden link
I can't seem to figure it out using CSS.

Username: Gayatriom
pw: CC2Y$ox#3AJ8h4maCAv0xwpK

#910989

Minesh
Supporter

Languages: English (English )

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

Well - to remove the unwanted text from your distance filter control you can use inputs_placeholder attribute as given under.

<div class="distance">
    
    [wpv-control-distance inputs_placeholder="%%DISTANCE%% <span class='align_of'>of </span> %%CENTER%%" default_unit="mi" compare_field="location" distance_center_url_param="toolset_maps_distance_center" distance_radius_url_param="toolset_maps_distance_radius" distance_unit_url_param="toolset_maps_distance_unit"]
       
      </div>

Also, to align the of word I wrap the word using span tag as you can see with above code and I've added following CSS to your filter section's CSS box:

span.align_of {
  padding-top: 15px;
}

I can see its displaying the output as per your need. Could you please confirm it works for you as well.

#913318

Minesh
Supporter

Languages: English (English )

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

Could you please confirm - the solution I shared works for you.