Advertisement:

Author Topic: (SOLVED) Show ads on the search page as a list, the rest of site has grid  (Read 978 times)

makmortifera

  • Newbie
  • *
  • Posts: 33
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.
« Last Edit: June 23, 2017, 07:18:04 pm by makmortifera »

gave

  • Newbie
  • *
  • Posts: 26
Re: Search page start with list
« Reply #1 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

« Last Edit: June 23, 2017, 04:23:24 pm by gave »

Liath

  • issues
  • Hero Member
  • *
  • Posts: 1346
  • </html> the end is always near
Re: Search page start with list
« Reply #2 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 ;)

makmortifera

  • Newbie
  • *
  • Posts: 33
Re: Search page start with list
« Reply #3 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

makmortifera

  • Newbie
  • *
  • Posts: 33
Re: Search page start with list
« Reply #4 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.

Liath

  • issues
  • Hero Member
  • *
  • Posts: 1346
  • </html> the end is always near
Re: Search page start with list
« Reply #5 on: June 23, 2017, 07:04:26 pm »
Try this...

makmortifera

  • Newbie
  • *
  • Posts: 33
Re: Search page start with list
« Reply #6 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.
« Last Edit: June 23, 2017, 07:45:28 pm by makmortifera »

Liath

  • issues
  • Hero Member
  • *
  • Posts: 1346
  • </html> the end is always near
Re: Search page start with list
« Reply #7 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...

makmortifera

  • Newbie
  • *
  • Posts: 33
Re: Search page start with list
« Reply #8 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.

Liath

  • issues
  • Hero Member
  • *
  • Posts: 1346
  • </html> the end is always near
Oh sorry  ;D