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

Font awesame icon not appear #5248

Open
fizi opened this issue May 2, 2024 · 3 comments
Open

Font awesame icon not appear #5248

fizi opened this issue May 2, 2024 · 3 comments
Labels
type: bug A problem that should not be happening

Comments

@fizi
Copy link

fizi commented May 2, 2024

What e107 version are you using?

Latest Github version (just updated)

Bug description

Font awesame icon not appear - content: "\f06e"; - appear if I put the link of rontawesame .css into the theme.php file.

How to reproduce

If I put the code into the style.css of theme - not appear.
If I put the link into the theme.php file (e107::css("url", "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css");) the icon appear.

Expected behavior

I put the icon code into the style.css anf icon appear.

What browser(s) are you seeing the problem on?

Firefox

PHP Version

PHP 8.1.10 (localhost)

@fizi fizi added the type: bug A problem that should not be happening label May 2, 2024
@Vodhin
Copy link

Vodhin commented May 5, 2024

Font Awesome css files are loaded by e107. As far as I know, you do not need to call the CSS or write your own. Just add an element with the font-awesome class you want:

<i class="fa fa-plus"></i>

@fizi
Copy link
Author

fizi commented May 5, 2024

Not load.
I use the code in the style.css file (...:before {content: "\f06e";} and not load. Not the html code, css code.

@Jimmi08
Copy link
Contributor

Jimmi08 commented May 6, 2024

@Vodhin it is not so easy. e107 is converting icons to SVG so there is problem with pseudo classes in CSS. Plus there is very often different family name ... like fontawesome vs. Font Awesome (there are a lot of versions)
Not mention different versions of font awesome itself.

And installation pack is bigger and bigger...

@fizi I need to see your theme code or demo to tell you what is exact reason. But I run into this before.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A problem that should not be happening
Projects
None yet
Development

No branches or pull requests

3 participants