movieseals Posted June 27, 2019 Posted June 27, 2019 (edited) The reason I am asking is that I have a module that needs to use fontawesome and something systematically strips anything that is placed inside /modules/slider/css. If I change the folder name, nothing gets stripped but for some reason, the CSS changes and it does not treat the images the same way. It is very odd. If I look at the code, all the forward slashes are stripped from the CSS, causing things to appear as F0... instead of the image it should be. HTML purifier is disabled. For example, the CSS should be: .tab-content .bx-controls-direction a.bx-prev:before { content: "\f0d9"; font-family: FontAwesome; padding: 0; } However, if put in a folder called css, no matter what I do, even adding !important;, the forward slash gets stripped: .tab-content .bx-controls-direction a.bx-prev:before { content: "f0d9"!important; font-family: FontAwesome; padding: 0; } If I change the name of the css folder to say views, then the arrows appear correctly but the rest of the CSS, which I did not change at all, does not behave like it does in the CSS folder, instead the images are cut off around the edges... Changing the folder name back to css seems to fix the issue. Very odd. Edited June 27, 2019 by movieseals
musicmaster Posted June 28, 2019 Posted June 28, 2019 The backslash serves of course also as an escape character. So you might need to double (like "\\") to have the desired effect.
movieseals Posted June 28, 2019 Author Posted June 28, 2019 1 hour ago, musicmaster said: The backslash serves of course also as an escape character. So you might need to double (like "\\") to have the desired effect. I had read about that. They got wiped too! I was also told to add !important; at the end, but that did not work either...
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