-
-
Notifications
You must be signed in to change notification settings - Fork 87
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
[Feature Request] Filter to remove fontawesome #566
Comments
If you have an idea, please create a PR. But @justinkruit is FA pro user as well, maybe he has an idea or can quickly explain how he solves that. |
I see the mentioned using priorities etc. Have you tried making a new function in your child theme, dequeue fontawesome in there, and then register that function as a hook with a later priority? That should solve this issue. (Can't write an example at the moment, as I'm on my phone haha) |
That's more work than a |
Currently looking into this, with the idea to add more filters in general. |
That's probably exactly why I misspelled that lolol. Used to autocorrect from mobile. |
So, if I am not totally obtuse, you can and should do this:
This should work. The reason you need priority 11 is that the parent theme uses default 10, and if you load this dequeue on the same priority it wont work. You could of course also go max and use I suggest to also do This should do the trick. |
Describe the feature that you'd like
Hello!
Since we use FontAwesome Pro, we remove the default FA styles provided by this theme. However, currently we have to manually edit the functions.php from the parent theme, as trying to override it in the child theme is hit and miss and requires us to mess with priorities which causes other conflicts anyway.
We'd like to see a filter (i.e., "bootscore_fontawesome_enqueue") or similar that can prevent this arguably non-essential file from being loaded.
Why is this feature needed? What problem does it solve?
Some people like us may prefer to use their own version of fontawesome or even remove it entirely.
Checklist
The text was updated successfully, but these errors were encountered: