Osclass forums

Support forums => Themes => Topic started by: makmortifera on June 22, 2017, 11:53:30 pm

Title: (SOLVED) Show ads on the search page as a list, the rest of site has grid
Post 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.
Title: Re: Search page start with list
Post by: gave on June 23, 2017, 04:21:48 pm
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

Title: Re: Search page start with list
Post by: Liath on June 23, 2017, 05:41:35 pm
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 ;)
Title: Re: Search page start with list
Post by: makmortifera on June 23, 2017, 06:48:15 pm
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
Title: Re: Search page start with list
Post by: makmortifera on June 23, 2017, 06:55:09 pm
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.
Title: Re: Search page start with list
Post by: Liath on June 23, 2017, 07:04:26 pm
Try this...
Title: Re: Search page start with list
Post by: makmortifera on June 23, 2017, 07:07:14 pm
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.
Title: Re: Search page start with list
Post by: Liath on June 23, 2017, 07:11:10 pm
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...
Title: Re: Search page start with list
Post by: makmortifera on June 23, 2017, 07:13:37 pm
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.
Title: Re: (SOLVED) Show ads on the search page as a list, the rest of site has grid
Post by: Liath on June 23, 2017, 07:26:20 pm
Oh sorry  ;D