Skip to content
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

Pro icons not working #35

Closed
MakarovCode opened this issue May 3, 2019 · 5 comments
Closed

Pro icons not working #35

MakarovCode opened this issue May 3, 2019 · 5 comments

Comments

@MakarovCode
Copy link

I've been trying to use the pro icons but can't make it work.
I download de SVG files, save them in app/assets/svg folder.

Add this line to config/initializers/assets.rb
Rails.application.config.assets.precompile += %w( svg/* )

Try using icons with both the HTML and GEM Helpers:
<%= fa_icon('analytics', type: :fas) %> <i class="fas fa-analytics"></i>

Restarted my server, not working!. What am I missing?

@parterburn
Copy link
Contributor

@MakarovCode FA just released Kits a few days ago which makes using Pro icons with this gem much easier. See the updated Readme in the PR I just made: #37

@tomkr4l
Copy link
Owner

tomkr4l commented Jun 7, 2019

@MakarovCode Sorry for slow response. I'm not using Pro icons so I didn't try this. Did you find the solution or steps proposed by @parterburn worked for you?

@MakarovCode
Copy link
Author

Yes, it did work, I remove the next lines from application.scss and application.js

@import "font_awesome5";
//= require font_awesome5

And load the CDN (Kit) in my application.html.erb
<script src="https://kit.fontawesome.com/xxxxxxxxx.js"></script>

Very important is to check Pro in the Font Awesome Kit configuration.

@tomkr4l
Copy link
Owner

tomkr4l commented Jun 9, 2019

@MakarovCode Super, thank you for response. Closing for now. Feel free to reopen if you have any problem.

@tomkr4l tomkr4l closed this as completed Jun 9, 2019
@chmich
Copy link

chmich commented Jun 29, 2019

Hi, Like MakarovCode, it works for me.
But, is there a way to have all svgs inside the public-folder and the gem would drag the svgs from there?

#41

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants