Home › Forums › WoodMart support forum › Redis & custom css
Redis & custom css
- This topic has 14 replies, 2 voices, and was last updated 2 years, 11 months ago by Artem Temos.
-
AuthorPosts
-
December 21, 2021 at 4:47 pm #341024
loraloraParticipantHi I have a problem-question.
If I turn on the server caching of Redis – in about 75% of cases of the first download in the browser out of 100%, the custom css does not load immediately, but is loaded only on 3-5 pages.
and only in rare cases does it work normally
And if I disable Redis, then custom styles work 100% from 100%.Maybe I missed some settings?
December 22, 2021 at 7:40 am #341130
Artem TemosKeymasterHi,
Please, describe to us your problems in a bit more details. Attach some screenshots and provide us with a list of steps on how to reproduce them on your website.
Thank you in advance.
December 22, 2021 at 12:39 pm #341242
loraloraParticipantHello thanks for the help
For some reason this is working fine now.
But I noticed another problem: the code inserted in does not work on Custom CSS for desktop but works on mobile (interrupting the code of the mobile version).
I recorded a video.P.S. please do not close the topic yet, I will record a video with Redis and send it to you later, as the problem starts to manifest itself again.
December 22, 2021 at 12:59 pm #341254
Artem TemosKeymasterAs we can see, the problem is caused by the Custom CSS itself and not by the theme. Sorry, but you write your custom code on your own risk and fixing such bugs is out of our theme support scope.
December 22, 2021 at 1:38 pm #341264
loraloraParticipantYou did not understand me.
Custom CSS for desktop works for both desktop and mobile versions.
As far as I understand, if you put css in this field (Custom CSS for desktop), then the code from Custom CSS for desktop will be loaded only on the desktop? Then why does this code work and change the display of elements for the mobile version as well?
December 22, 2021 at 2:09 pm #341271
loraloraParticipantCorrection to my post above: works for mobile versions but doesn’t work for desktop.
December 22, 2021 at 2:39 pm #341275
Artem TemosKeymasterCode placed to the mobile Custom CSS field is wrapped with CSS media query. But, anyway, it is loaded both on desktop and mobile devices.
Try to put all your custom CSS to the global CSS field to see how it works both on desktop and mobile resolution.December 22, 2021 at 3:59 pm #341300
loraloraParticipantDecember 23, 2021 at 7:07 am #341429
Artem TemosKeymasterPlease, send the code you put there so we can try to find it on your website to see if it is printed there correctly.
December 23, 2021 at 11:45 am #341514
loraloraParticipantPlease take a look.
I also recorded a video for you.
When I add this code to the “Custom CSS for desktop” field it doesn’t work for the desktop.But when I move the same code to the “Global Custom CSS” field – this code works.
December 23, 2021 at 1:36 pm #341549
Artem TemosKeymasterPlease, add the code to the Custom CSS for desktop and send us a link where we can check it.
December 23, 2021 at 2:22 pm #341555
loraloraParticipantок, check it
December 23, 2021 at 2:33 pm #341558
Artem TemosKeymasterAs we can see, this CSS exists on the page. It might not work because of some CSS error in other CSS code above that code. Check the screenshot https://monosnap.com/file/PEuDhE3I4I2eCcvL9JVbPcIQ6Mj9le
December 23, 2021 at 4:22 pm #341590
loraloraParticipantI understand sorry! thank you very much
December 24, 2021 at 7:15 am #341691
Artem TemosKeymasterYou are welcome! Feel free to contact us if you have any further questions.
-
AuthorPosts
The topic ‘Redis & custom css’ is closed to new replies.
- You must be logged in to create new topics. Login / Register