Osclass Support Forums
Osclass theme support => Veronika Osclass Responsive Theme => Topic started by: azi_111 on February 14, 2021, 04:25:11 PM
-
Hi,
when my user want add location to the listening, Osclass find City but write also:
No country match to your criteria (Brak kraju spełniającego kryteria)
No region match to your criteria (Brak województwa spełniającego kryteria)
How can I hide this? It looks non proffesional :)
I add attachement in Polish, but I think that you understand what about I write.
-
@azi_111
Add this code to your style.css:
#location-picker .shower .option.country, #location-picker .shower .option.region {display:none!important;}
-
It doesn't work OK, because clients can't searching offers through regions - they can search only in cities.
My intention was hide not important information but not delete regions.
-
@azi_111
Then try this:
#location-picker .shower .option.empty-pick {display:none!important;}
-
Thank you, it work good. :)
-
Thank you, it work good. :)
Your user will only search by City.. Region and country will not work :P.
Is that what you want
-
Better you find the below line at footer.php
// No city, region or country found
if( countCountry == 0 && shower.find('.empty-country').length <= 0 && shower.find('.service.min-char').length <= 0) {
shower.find('.option.country').remove();
result_first += '<div class="option service empty-pick empty-country country"><?php echo osc_esc_js(__('No country match to your criteria', 'veronika')); ?></div>';
}
if( countRegion == 0 && shower.find('.empty-region').length <= 0 && shower.find('.service.min-char').length <= 0) {
shower.find('.option.region').remove();
result_first += '<div class="option service empty-pick empty-region region"><?php echo osc_esc_js(__('No region match to your criteria', 'veronika')); ?></div>';
}
if( countCity == 0 && shower.find('.empty-city').length <= 0 && shower.find('.service.min-char').length <= 0) {
shower.find('.option.city').remove();
result_first += '<div class="option service empty-pick empty-city city"><?php echo osc_esc_js(__('No city match to your criteria', 'veronika')); ?></div>';
}
}
shower.html(result_first + result);
}
});
} else {
Just delete No country match to your criteria and no region match to your criteria..
Delete only the text not the full code
-
Sorry, that I don't write, but I have no time to check your advice.
I check it, and your advice didn't solve problem because still there is line, clear but it is.
I see that MB Themes advice work OK - there is searching by region or city.
I see other problem now:
Something it don't show proposition until I click in this text box - if someone doesn't know it, he can think that it doesn't work
Attachements:
1. lack of propositon
2. propositon after click in text box