-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Font Awesome on the front-end may conflict with themes #699
Comments
We use font-awesome in 3 less/CSS files:
|
I found out that the conflicting Font Awesome is loaded by another plugin and it's an older Font Awesome version 4.6.3 while we load 4.7.0. Therefore I am putting this on-hold, since we want to refactor generally speaking the widgets, this will be solved then. |
Is there a filter I can add to my functions.php file to block wordlift to load font awesome as it is already loaded through the theme and now it is creating multiple fontawesome calls |
@cinghaman I'll take a look. |
font-awesome is currently referenced by the following css:
This is where we use font-awesome:
|
hmm so there is no easy way I could just add_action > wp_deregister_style fontawesome from your plugin |
Nope, in the medium term I think we should remove the font-awesome dependency. In the short term we could however split the font loading to a separate style sheet which could then be filtered. |
That would be great |
I think we should focus on |
Yea, it's the front end issue only as it adds additional resource/request and especially in my case I am loading the font-awesome from my assets folder so they get cached properly. |
Yes, I can totally relate to that. Ok, I'll send an update soon. |
…to filter out that css (this is valid only for the front-end)
Find here a development version for WordLift 3.19.3. The font-awesome fonts are now loaded in a separate dependency and there's a new filter that you can use to turn that off (only for the front-end), e.g.:
Travis is running UTs here. Please remember not to uninstall WordLift before updating otherwise the vocabulary would be deleted. |
Please describe the issue here:
We might need to reconsider our font-awesome usage on the front-end to avoid conflicts with themes.
See https://freeyork.org/photography/atlas-of-beauty-photographer-travels-the-world-to-capture-the-beauty-of-500-women-around-the-world/
Please provide additional data about your WordPress install:
[ ] WordPress version: 4.8.3
[ ] WordLift plugin version: 3.15.5
The text was updated successfully, but these errors were encountered: