How to hide pagination on homepage of site

  • Posts: 48
  • Thank you received: 1
7 years 10 months ago #272899

-- HikaShop version -- : 3.1.1
-- Joomla version -- : 3.7.2

Hey There,

I am using Product Listing as my site home menu, products are showing 100% fine but they are all showing instead of just 20. I am wanting the latest 20 to show on the homepage only and no pagination options at all. Is it possible at all to hide the pagination at bottom of homepage and only show 20 items?

Thanks N Advance

Please Log in or Create an account to join the conversation.

  • Posts: 4820
  • Thank you received: 654
  • MODERATOR
7 years 10 months ago #272935

Hello,

If you have more than 20 products to display, pagination will be automatically displayed, from this I see 2 solutions :
1°) You create a "special" category with only the 20 products you want displayed, and you define your listing with this specific category
2°) Or if first solution isn't the good one, you can define to display only 20 products per page in Products options tab and in Items part, like this :



AND use some Frontend css command to remove the pagination, something like this :
.hikashop_category_information_menu_ID .pagination_class  {
    display: none;
}

Note : Have a look to this tutorial to see how to proceed.

Hope this will help you.

Regards

Attachments:
Last edit: 7 years 10 months ago by Philip.

Please Log in or Create an account to join the conversation.

  • Posts: 48
  • Thank you received: 1
7 years 10 months ago #273134

Thanks so much for response Phillip! Is there any other possible options at all? Going the new category route would require me to have to add/remove 20 different products each time I add new products to the site. Adding the script would mean pagination would be hidden on other pages instead of just the homepage which I don't want. thanks agin

Please Log in or Create an account to join the conversation.

  • Posts: 83799
  • Thank you received: 13571
  • MODERATOR
7 years 10 months ago #273184

Hi,

The alternative is to not use a HikaShop products/categories listing menu item but a menu item like a Joomla article and then configure a HikaShop content module in order to display your products/categories on that menu item. Modules don't have pagination.

Also, with the CSS solution from Philippe, you specify the menu item id in the CSS so it will only affect the homepage, not the other categories/products listing menu items.

Please Log in or Create an account to join the conversation.

Time to create page: 0.067 seconds
Powered by Kunena Forum