Search the Community
Showing results for tags '@import'.
-
Hi everyone, I have a website on Prestashop 1.7.2 And I am using a paid theme. So my question is how to avoid @import CSS from theme.css. What I tried is : I have been trying to remove @import CSS in theme.css. And I successfully managed to do it. And also it increased my website performance significantly. But after making changes website is not loading proper fonts as well as font awesome icons cause I think I did something wrong. And the main menu in the mobile browser is also lost (Screenshot). So, 1.png is the default CSS and 2.png is what I changed. And those href is a file I saved in a directory outside the main CSS. If anyone knows how to remove @import CSS then please help us. Thanks in advance
-
Hi, I using PS 1.5.4.0 and I think there is a bug in CCC handling of @import CSS sentences. I my case, a CSS file linked prior optimizing with CCC has: ... @charset "utf-8"; /* CSS Document */ /* -------------------------------------------- TYPOGRAPHY -------------------------------------------- */ @import url("http://fonts.googleapis.com/css?family=Germania+One|Noto+Sans:400,400italic,700,700italic"); ... But the resulting optimized file, *_all.css has: @import url("http://www.d-diferentes.com/themes/dd/css/grid_prestashop.css");@import url("http://www.d-diferentes.com/modules/parchedd/views/css/http://fonts.googleapis.com/css?family=Germania+One|Noto+Sans:400,400italic,700,700italic"); ... Where " http://www.d-diferentes.com/modules/parchedd/views/css/ " should not be and it is the URL of the original CSS file (in a module). Someone know what should be fixed, and how, to prevent that incorrect optimized @import url? TIA, Antonio.