Skip to main content

Reply To: How to customize Home page Category list

ClassiBase classifieds script Forums General help How to customize Home page Category list Reply To: How to customize Home page Category list

#898 Reply

ClassiBase
Keymaster

We wrote custom javascript to split home page categories to given number of columns.

  1. download setNumColumns.2.js javascript file.
  2. Edit addLoadEvent(function(){setNumColumns('.content .widget_categories ul:first',4)}); line at the bottom if you want to have other than 4 columns
  3. Navigate to “Settings” -> “Header / Footer” from admin panel
  4. Paste javascript file contents to “Custom footer”
  5. “Submit” changes to save

Also you can make other changes if you want. When site viewed from mobile phone with smaller than 450px with then you will see all categories in one column with full width.

We also tried to accomplish this with CSS3 ‘column-count: 4;’ property but it was inconsistent.

  • Classifieds Business Newsletter

    Get discounts and tips about growing your classifieds website.

    Subscribe