Tell us what you are trying to do? I built out a simple event page with a Distance Filter. It all works, but the HTML has a <br> that I can't find anywhere in my code.
Is there any documentation that you are following? I used some of the instructions for the Realtor site.
Is there a similar example that we can see? Not off the top of my head but you can see it in action at this url.
I tried adding in the inputs_placeholder="Something else" to change the words as noted in this topic https://toolset.com/forums/topic/style-distance-filter/ but that just took the whole feature away so I guess that doesn't work.
Here is the HTML the site is producing with the <br>
<div class="form-group">Show results within <input type="number" min="0" id="toolset-maps-distance-value" name="toolset_maps_distance_radius" class="form-control js-toolset-maps-distance-value js-wpv-filter-trigger" value="5" required=""><br>
<select class="js-toolset-maps-distance-unit form-control js-wpv-filter-trigger" name="toolset_maps_distance_unit" id="toolset-maps-distance"><option value="km">km</option><option value="mi" selected="selected">mi</option></select> of <input type="text" min="0" id="toolset-maps-distance-center" name="toolset_maps_distance_center" class="form-control js-toolset-maps-distance-center js-wpv-filter-trigger-delayed js-toolset-maps-address-autocomplete pac-target-input" value="" placeholder="Show Results" autocomplete="off"><input type="button" class="btn js-toolset-maps-distance-current-location" value="Use My Location" style="font: normal normal normal 14px/1 FontAwesome;"></div>
I was able to correct my issue with inputs_placeholder= with a bit of CSS and finding other examples in the support tickets but I have not been able to find anything that would add the <br>. I think it might be hard coded in the filter code Toolset generates. Any suggestions on where to look next would be greatly appreciated. I would really like my filter to be on one line as intended.
I have disabled all plugins except Toolset and changed to the 2020 Default theme and the <br> is still in the code. I don't believe the distance feature would work without Toolset Maps.
I have the following Toolset plugins, Types, Block, Maps, Access, Modules, and Forms
I would be happy to provide debug info but I didn't see an option to do that privately.
The view is placed inside an archive page
Can you point me to where the code is that generates from the shortcode so I can look at my copy to see if it has been adjusted?
I can also state that it view looks fine in the block editor, but the <BR> is only showing on the Front end.
The <br> tag seems to be generated automatically by the
[wpv-control-distance default_unit="mi" compare_field="physical-address" distance_center_url_param="toolset_maps_distance_center" distance_radius_url_param="toolset_maps_distance_radius" distance_unit_url_param="toolset_maps_distance_unit"]
Shortcode.
I cant think of any other reason why the BR tag is added given that you've disabled the non-toolset plugins as well as switched to the 2020 default theme.
I can also confirm that this doesn't appear for me when I test on my end.
Right. So if it doesn't appear in your test environment then there has to be something wrong with mine. Can you tell me what php file the [wpv-control-distance] is generated by so I can go look at the code directly? I just want to look to see if it got added somehow. I'm also about to setup a new local test and install just these plugins to have another look.
okay. I can't duplicate this on a clean local site. However, I also copied fresh copies of all plugins to the website with the issue and that also didn't fix it. So now I'm thinking this is being stored in the database somewhere. The Jquery script is fixing this, but it is an odd experience to see the form reload once the page is loaded. So I am still trying to sort this out without the jquery line. Do you have any suggestions on where to look or search to check on this further. I really don't want to have to build this site again from scratch.
My issue is resolved now. Thank you! The jquery script fixed my issue, but I still wish I could figure out how this <br> is getting inserted into the code on this specific website.