Jump to content

Add custom code to home page and how to change product grids on mobile.


Recommended Posts

I have prestashop 1.7. I want to add "Customers" slide to my website on home page. For example lets take classic theme. I want to add a slider with css bootstrap and html. How can I do it without purchasing any modules. 

Second question is.. when I enter catalogs exc. I want products to be shown in 2 columns I need it very much how can I do it? Thanks for your attention!

Share this post


Link to post
Share on other sites

For slide in Homepage in pre 1.7, you can modify it in file:

themes/classic/modules/ps_imageslider/views/templates/hook/slider.tpl

I want products to be shown in 2 columns

you can change CSS for: thumbnail-container since with=257px to width = 385px 

in file: themes/classic/assets/css/theme.css

Line 7

https://postimg.cc/bZYZ2g77

Share this post


Link to post
Share on other sites
4 hours ago, tdsoft said:

For slide in Homepage in pre 1.7, you can modify it in file:

themes/classic/modules/ps_imageslider/views/templates/hook/slider.tpl

I want products to be shown in 2 columns

you can change CSS for: thumbnail-container since with=257px to width = 385px 

in file: themes/classic/assets/css/theme.css

Line 7

https://postimg.cc/bZYZ2g77

I want that slider to be on its place as default. I have designed another slider with js bootstrap and css customers slider. I want to add it to home page. second one. But this method css it is okay with computers version I want to be shown in 2 columns on mobile* thank you very much! If you can help appericate it!

 

Share this post


Link to post
Share on other sites
17 minutes ago, tdsoft said:

Yes, you can add more your sourceode in file

themes/classic/modules/ps_imageslider/views/templates/hook/slider.tpl

I can not get 1 thing how and where to make and paste my slider ? Boostrap is automatically connected yes? HTML and CSS files how to add and make it appear on the bottom of page please? I am so sorry to take your time just I am newbie as forum says)) 

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More