Advertisement:

Author Topic: There is no "all regions" and "all categories" option in top search [Solved]  (Read 1596 times)

goodidea

  • Newbie
  • *
  • Posts: 25
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.
« Last Edit: May 02, 2015, 11:38:27 am by goodidea »

goodidea

  • Newbie
  • *
  • Posts: 25
 :-[ Any help please.

teseo

  • Hero Member
  • *****
  • Posts: 6169
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

goodidea

  • Newbie
  • *
  • Posts: 25
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.  :)