Osclass forums
Support forums => Themes => Topic started by: makmortifera on June 22, 2017, 11:53:30 pm
-
Hello everyone, this is my first post, I would like to know if there is a way and how to do that.... when clicking on search the page, show ads as list. My search page, when entering, shows the ads as grid.
Thx a lot.
-
Hey, try adding this to your Site's URL on the Search page: &sShowsAs=list
If this does not work, perhaps you need to adapt your theme to switch when this is set.
If you provide your theme's name, and or site link others may be able to help too.
If SEF enabled, try:
yourdomain.com/search/sShowAs,list
-
Some themes have an option in theme settings for that. But without knowing which theme you are using, it's nearly impossible to help you ;)
-
Some themes have an option in theme settings for that. But without knowing which theme you are using, it's nearly impossible to help you ;)
Hi Liath, thx for the reply... im using OsclassWizards theme
-
Hey, try adding this to your Site's URL on the Search page: &sShowsAs=list
If this does not work, perhaps you need to adapt your theme to switch when this is set.
If you provide your theme's name, and or site link others may be able to help too.
If SEF enabled, try:
yourdomain.com/search/sShowAs,list
Hi gave, thx for the reply... I understand what you're trying to say, by clicking on the icon to list the ads in search page, it changes the link from "/index.php?page=search" to "/index.php?page=search&sShowAs=list".
But what I would like to know is where to change so that when you click on search, or make any query defining categories or writing something, it already enters as list in the search page not grid automatically.
-
Try this...
-
Thx, i have found where to change.
"oc-content/themes/osclasswizards/search.php"
Find: "if(osclasswizards_show_as() == 'gallery'){"
Change to: "if(osclasswizards_show_as() == 'list'){"
Save, done.
When you click the search button or even set to search only in a specific category, or with some other filter, the result will show in list, the rest of website still on grid.
-
Thx, i have found where to change.
"oc-content/themes/osclasswizards/search.php"
Search for "gallery", there will be three times, change all three to "list".
Save, done.
When you click the search button or even set to search only in a specific category, or with some other filter, the result will show in list.
He don't need to change anything, anywhere... except this setting i have posted before...
-
Thx, i have found where to change.
"oc-content/themes/osclasswizards/search.php"
Search for "gallery", there will be three times, change all three to "list".
Save, done.
When you click the search button or even set to search only in a specific category, or with some other filter, the result will show in list.
He don't need to change anything, anywhere... except this setting i have posted before...
My question was to change only the search page to list, this function I already knew, but it changes the whole site and I want to leave the rest of the site as grid. Understood?
Thank you for your help.
-
Oh sorry ;D