Support Forums - Classified Ads Script Osclass
Osclass theme support => Stela Osclass Theme => Topic started by: unlimit on March 05, 2019, 04:33:21 PM
-
There is no such reset filter option in mobile responsive view in theme.
I have added following line to show in mobile view but not reset as in PC view.
<a href="<?php echo osc_search_url(array('page' => 'search'));?>" class="clear-search clear-cookie "><?php _e('Reset filter', 'stela'); ?></a>.
Please help to solve this.
Thanks
-
@unlimit
It should reset.
-
No.
You can try with demo.
It doesn't reset location when you want to clear the location field at filters in responsive view.
-
@unlimit
https://stela.mb-themes.com/search/sOrder,dt_pub_date/iOrderType,desc/category,1/sTransaction,1
-- 2 results
https://stela.mb-themes.com/search/
-- 29 results
-
No it doesn't work in MOBILE RESPONSIVE VIEW
Eg:
1- Go to search page (https://stela.mb-themes.com/search)
2- Click filters --------------> Location to ( Edson, Kansas, US)
3- Click search
This will shows all listings for Edson, Kansas, US location
Then i want to go back to all listings
So i again click filters
2- Clear the location feild
3 Click seach
4 - But still it shows listings from Edson, Kansas, US location
and you will see the above location is still active when you click the filters again.
But if you go to main page and click search button, all listings will appear.
This is only for MOBILE VIEW
PC view work good.
Thanks
-
It's perfectly working in Veronika theme
-
More---------------
Only items with pictures check box not working in MOBILE RESPONSIVE VIEW
-
Will look on it
-
Indeed, there is a problem in resetting the location in the mobile version for Stela
-
@Dan
In file:
oc-content/themes/stela/search.php
Find line:
<button type="submit" class="btn btn-secondary is767" id="search-button-mobile"><?php _e('Search', 'stela'); ?></button>
Bellow this line add:
<a href="<?php echo osc_search_url(array('page' => 'search', 'clearCookieAll' => 'done'));?>" class="clear-search clear-cookie <?php echo $side; ?> is767"><?php _e('Reset filter', 'stela'); ?></a>
You will now have button to reset filters in mobile view.
-
The reset button appears but, I'm sorry, the code does not work.
The function resets all previously searched criteria, less the location (in the mobile version). In desktop version everything is ok.
-
@Dan
I've checked and working properly on demo site.
-
I re-verified Stela's theme on localhost. We have disabled all existing plugins and deleted the cookie
In the mobile version, all the search criteria are reset, but it remains the last location you are looking for. I do not know what is the cause or the solution. :(
-
@Dan
Try to disable cookies usage in theme settings.
-
@Dan
Try to disable cookies usage in theme settings.
@Frosticek
I've solved my problem.
The location is not reset because in setting the Stela theme, we have enabled saving the storage of search parameters in cookies.
We have disabled this option and now everything is fine.
Mark as solved the subject
Thank you