Osclass forums

Support forums => Themes => Twitter => Topic started by: goodidea on April 23, 2015, 11:46:41 pm

Title: There is no "all regions" and "all categories" option in top search [Solved]
Post by: goodidea on April 23, 2015, 11:46:41 pm
Hi all,

I am using twitter theme. In the top search, there are no "all categories" and "all regions"options for categories and region selectors. once a category or region is selected user will not be able to search from all categories and regions without refreshing the page. Is there any way to include this option in both categories and regions selections. Thanks in advance.
Title: Re: There is no "all regions" and "all categories" option in top main search
Post by: goodidea on April 24, 2015, 07:34:03 pm
 :-[ Any help please.
Title: Re: There is no "all regions" and "all categories" option in top main search
Post by: teseo on April 24, 2015, 09:53:05 pm
Hi,

twitter/functions.php:

1.- Locate this:

Code: [Select]
            echo '<option></option>' ;
            while( osc_has_categories() ) {

and replace it with:

Code: [Select]
            echo '<option></option>' ;
            echo '<option value="">' . __('All categories', 'twitter') . '</option>';
            while( osc_has_categories() ) {

2.- Locate:

Code: [Select]
            echo '<option></option>' ;
            while( osc_has_list_regions() ) {

and replace with:

Code: [Select]
            echo '<option></option>' ;
            echo '<option value="">' . __('All regions', 'twitter') . '</option>';
            while( osc_has_list_regions() ) {

Regards
Title: Re: There is no "all regions" and "all categories" option in top main search
Post by: goodidea on April 24, 2015, 10:53:28 pm
Thank you very much teseo. It worked like a charm. It produced exactly needed results. Thanks once again. You helped me many times.

I need more help :)

In twitter theme regions are arranged alphabetically. is there a way to show them in the order in which they are added from dashboard? I want it for publishing page and regions drop down menu in search. Screen shot is attached for better explanation.  :)