This topic contains a post which is marked as Best Answer. Press here if you would like to see it.
*

azi_111

  • **
  • 13 posts
No country match to your criteria - how can I hide it
« 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.

*

MB Themes

Re: No country match to your criteria - how can I hide it
« Reply #1 on: February 14, 2021, 08:28:34 PM »
@azi_111
Add this code to your style.css:
Code: [Select]
#location-picker .shower .option.country, #location-picker .shower .option.region {display:none!important;}
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

azi_111

  • **
  • 13 posts
Re: No country match to your criteria - how can I hide it
« Reply #2 on: March 05, 2021, 01:03:21 AM »
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. 

*

MB Themes

Re: No country match to your criteria - how can I hide it
« Reply #3 on: March 05, 2021, 07:44:52 AM »
@azi_111
Then try this:
Code: [Select]
#location-picker .shower .option.empty-pick {display:none!important;}
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

azi_111

  • **
  • 13 posts
Re: No country match to your criteria - how can I hide it
« Reply #4 on: March 05, 2021, 10:53:25 PM »
Thank you, it work good. :)

Re: No country match to your criteria - how can I hide it
« Reply #5 on: March 05, 2021, 11:01:56 PM »
Thank you, it work good. :)

Your user will only search by City.. Region and country will not work  :P.

Is that what you want
« Last Edit: March 06, 2021, 04:59:24 AM by Usiesili Bright »

Marked as best answer by frosticek on March 06, 2021, 02:09:18 PM
Re: No country match to your criteria - how can I hide it
« Reply #6 on: March 06, 2021, 09:09:33 AM »
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

*

azi_111

  • **
  • 13 posts
Re: No country match to your criteria - how can I hide it
« Reply #7 on: May 23, 2021, 11:08:32 PM »
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

« Last Edit: May 25, 2021, 11:54:45 PM by azi_111 »