Advertisement:

Author Topic: [GUM THEME ONLY] Display homepage ads as list instead of gallery.  (Read 1671 times)

ezybusy

  • Full Member
  • ***
  • Posts: 193
[GUM THEME ONLY] Display homepage ads as list instead of gallery.
« on: September 20, 2017, 12:06:24 am »
If you are using the Gum Theme and looking for a way to change the gallery display of ads to
list display on the homepage then do the following:

1 - Open the file main.php located in the theme folder and change the following code:
Code: [Select]
gum_draw_item_grid(); located around line 43 to
Code: [Select]
gum_draw_item('list');
That's it!!! you should have the same look as the attached screenshot

Jarrett

  • Newbie
  • *
  • Posts: 9
Re: [GUM THEME ONLY] Display homepage ads as list instead of gallery.
« Reply #1 on: April 02, 2018, 06:07:05 am »
Not only that but in Search.php you can switch the search page to grid view, all you have to do is switch the 'list' to 'grid' in two places, easy enough to find if you search.   might need to work on css a little too. Class/GumListinghelpers  is where additional code is for viewing ads.

What I need is a option to switch between grid and list on search page.  I could create a variable maybe or two separate search pages and switch between the two but how do I create the option on the search page?  any ideas?

I have to say that I had to do a lot of work to make gum them ready for production, but I guess I made a lot of changes too.  Please somebody help me with this is the last hurdle I have to jump as far as the layout is concerned.
« Last Edit: April 02, 2018, 06:41:33 pm by Jarrett »