Peter.31 Posted November 12, 2022 Share Posted November 12, 2022 (edited) I would like to display more products per row. Now I have 4 products displayed and I would like to display 5 products per row. Can anyone advise me how to do this? Edited November 13, 2022 by Peter.31 (see edit history) Link to comment Share on other sites More sharing options...
endriu107 Posted November 12, 2022 Share Posted November 12, 2022 You must provide more information like PrestaShop version, your theme name or even better share url. Link to comment Share on other sites More sharing options...
Peter.31 Posted November 12, 2022 Author Share Posted November 12, 2022 PrestaShop 1.7.8.5. Theme https://hrxtemplate.com/presta/v3_electronica_15/en/ Link to comment Share on other sites More sharing options...
endriu107 Posted November 12, 2022 Share Posted November 12, 2022 For example in custom.css you can add this for large screen: @media (min-width: 1680px) { #products.grid .tvall-product-wrapper-info-box { width: 20%; } } For other screen size you must add simillar code. Link to comment Share on other sites More sharing options...
Peter.31 Posted November 12, 2022 Author Share Posted November 12, 2022 Thanks it helped me. It works, but only in categories, not on the home page. Link to comment Share on other sites More sharing options...
endriu107 Posted November 12, 2022 Share Posted November 12, 2022 On homepage this theme use different files to display products, you should chceck in modules configuration is there any option to change that if not you must edit those modules code. Link to comment Share on other sites More sharing options...
Peter.31 Posted November 12, 2022 Author Share Posted November 12, 2022 I couldn't edit it on the home page. Apparently, the change must be made in the code in the module. Link to comment Share on other sites More sharing options...
Kriter.io Posted November 12, 2022 Share Posted November 12, 2022 it is related to the THEME you use. Just check if there are some editing tools about it. For example, several themes use ELEMENTOR that allows you to edit any page as you prefer. It should be easy to do and, if editing css is needed just because there is no other solution, ask for edited css to the company that made the THEME...so you will never have any problem when updateing prestashop or the THEME Regards Fabrizio Link to comment Share on other sites More sharing options...
Peter.31 Posted November 13, 2022 Author Share Posted November 13, 2022 If someone could help me edit the .css file, I would be very happy. Thank you in advance. Link to comment Share on other sites More sharing options...
endriu107 Posted November 13, 2022 Share Posted November 13, 2022 I think on home page is not only css but there is javascript rendered size by owl carousel library. Link to comment Share on other sites More sharing options...
Peter.31 Posted November 13, 2022 Author Share Posted November 13, 2022 Yes, it is so, it is possible to modify it somehow. Link to comment Share on other sites More sharing options...
Kriter.io Posted November 13, 2022 Share Posted November 13, 2022 6 minutes ago, Peter.31 said: Yes, it is so, it is possible to modify it somehow. Did you ask to the company who made the theme?...just asking because otherwise, if you edit such files, you might mess up other related files of the theme Link to comment Share on other sites More sharing options...
Peter.31 Posted November 13, 2022 Author Share Posted November 13, 2022 4 minutes ago, Kriter.io said: Pýtali ste sa spoločnosti, ktorá vytvorila tému?...iba preto, že inak, ak upravíte takéto súbory, môžete pokaziť ďalšie súvisiace súbory témy Yes, but it doesn't respond to replies. Link to comment Share on other sites More sharing options...
Kriter.io Posted November 13, 2022 Share Posted November 13, 2022 50 minutes ago, Peter.31 said: Yes, but it doesn't respond to replies. Usually on monday and tuesday developer reply to the weekend requests.....i hope they will reply soon. Regards Fabrizio Link to comment Share on other sites More sharing options...
Peter.31 Posted November 13, 2022 Author Share Posted November 13, 2022 I already edited it. I found it in the .js file Link to comment Share on other sites More sharing options...
Kriter.io Posted November 13, 2022 Share Posted November 13, 2022 1 hour ago, Peter.31 said: I already edited it. I found it in the .js file Woderful. Please share the solution and edit the title of the post adding [SOLVED] so you will help other people and guide them through the solution. Thanks Fabrizio Link to comment Share on other sites More sharing options...
Peter.31 Posted November 13, 2022 Author Share Posted November 13, 2022 I edited the non-tracking code in the front.js file. 320: { items: 1, slideBy: 1 }, 330: { items: 2, slideBy: 1 }, 400: { items: 2, slideBy: 1 }, 480: { items: 2, slideBy: 1 }, 650: { items: 3, slideBy: 1 }, 767: { items: 4, slideBy: 1 }, 768: { items: 4, slideBy: 1 }, 992: { items: 4, slideBy: 1 }, 1023: { items: 5, slideBy: 1 }, 1024: { items: 5, slideBy: 1 }, 1200: { items: 5, slideBy: 1 }, 1350: { items: 5, slideBy: 1 }, 1660: { items: 5, slideBy: 1 }, 1800: { items: 5, slideBy: 1 } Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now