michaldziurka Posted April 23, 2021 Share Posted April 23, 2021 Hi, I have the problem with configuring view of banners with phone view. On the computer screen everything is visible properly. When I try to go throw categories of my products, on my phone, on my page the banners size is wrong, and everybody sees it as one of the attached image below. I tried to paste this code: "#category-description img {max-width: 100%; height: auto}" in to the "/prestashop/prestan_pierwszainstalacja/themes/classic/assets/css" and clear cache, but it didn't work. Do you have any suggestions what I may do to repair it? Thanks in advance and wishing all of you good day 🙂!!! Link to comment Share on other sites More sharing options...
nikoz Posted April 26, 2021 Share Posted April 26, 2021 Hi, Do you have any link so we can check the css code ? Link to comment Share on other sites More sharing options...
michaldziurka Posted April 26, 2021 Author Share Posted April 26, 2021 5 hours ago, nikoz said: Hi, Do you have any link so we can check the css code ? https://4techpoland.pl here you are Link to comment Share on other sites More sharing options...
nikoz Posted April 27, 2021 Share Posted April 27, 2021 Try to put the below code in your css. (Preferably if you have a custom css file.) #category-description width: 100%; #category-description img width: 100%; height: auto !important; Link to comment Share on other sites More sharing options...
michaldziurka Posted April 27, 2021 Author Share Posted April 27, 2021 8 hours ago, nikoz said: Try to put the below code in your css. (Preferably if you have a custom css file.) #category-description width: 100%; #category-description img width: 100%; height: auto !important; I added to theme.css and it still doesn't work Link to comment Share on other sites More sharing options...
nikoz Posted April 28, 2021 Share Posted April 28, 2021 Ok..you have to put this code in the custom.css file. You will find this file in /themes/classic/assets/css folder. Try this ..then clear cache from Advanced Parameters -> Performance. If it doesn't work we will try to find another solution. Link to comment Share on other sites More sharing options...
michaldziurka Posted April 28, 2021 Author Share Posted April 28, 2021 32 minutes ago, nikoz said: Ok..you have to put this code in the custom.css file. You will find this file in /themes/classic/assets/css folder. Try this ..then clear cache from Advanced Parameters -> Performance. If it doesn't work we will try to find another solution. I put code as you see here and cleared cache from presta and my supplier of domain and still doesn't work I Link to comment Share on other sites More sharing options...
nikoz Posted April 28, 2021 Share Posted April 28, 2021 Hmm..Did you put the code exactly at the folder I mentioned ? The path looks different, as it is from cache folder. Can you try to download this module https://dh42.com/free-prestashop-modules/prestashop-free-css-module/ and put the code there. Lets see this Link to comment Share on other sites More sharing options...
michaldziurka Posted April 28, 2021 Author Share Posted April 28, 2021 7 hours ago, nikoz said: Hmm..Did you put the code exactly at the folder I mentioned ? The path looks different, as it is from cache folder. Can you try to download this module https://dh42.com/free-prestashop-modules/prestashop-free-css-module/ and put the code there. Lets see this Great!!! This module works, thank you very much. But with the code was something wrong I modified it a bit and I put this "#category-description img {max-width: 100%; height: auto}" Thank you very much have a nice day Link to comment Share on other sites More sharing options...
nikoz Posted April 29, 2021 Share Posted April 29, 2021 That's perfect then. You can use this module for your custom css changes. If you want you can edit the title of the post and put [SOLVED] at the beginning. Have a nice day! 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