fontawesome icon not view

Phoca Cart - complex e-commerce extension
User avatar
vodka
Phoca Enthusiast
Phoca Enthusiast
Posts: 53
Joined: 06 Apr 2022, 21:57

fontawesome icon not view

Post by vodka »

fontawesome installed.
the display of icons does not work only on the buttons of Phoca Cart, in other places it works.
please tell me what could be the reason
User avatar
Nidzo
Phoca Professional
Phoca Professional
Posts: 387
Joined: 07 Nov 2018, 14:55

Re: fontawesome icon not view

Post by Nidzo »

Can you post link to your website?
User avatar
vodka
Phoca Enthusiast
Phoca Enthusiast
Posts: 53
Joined: 06 Apr 2022, 21:57

Re: fontawesome icon not view

Post by vodka »

...
User avatar
Nidzo
Phoca Professional
Phoca Professional
Posts: 387
Joined: 07 Nov 2018, 14:55

Re: fontawesome icon not view

Post by Nidzo »

Something is messed with your FontAwesome. Try to add this code in <head></head> of your site. You can use Phoca Site plugin or if your template have option to add custom codes.

Code: Select all

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css" integrity="sha512-1ycn6IcaQQ40/MKBW2W4Rhis/DbILU74C1vSrLJxCq57o941Ym01SwNsOMqvEBFlcgUa6xLiPY/NS5R+E6ztJQ==" crossorigin="anonymous" referrerpolicy="no-referrer" />
Image
User avatar
vodka
Phoca Enthusiast
Phoca Enthusiast
Posts: 53
Joined: 06 Apr 2022, 21:57

Re: fontawesome icon not view

Post by vodka »

thank.
how to use the fonts that are in joomla itself '/media/vendor/fontawesome-free/css/fontawesome.min.css'
User avatar
Nidzo
Phoca Professional
Phoca Professional
Posts: 387
Joined: 07 Nov 2018, 14:55

Re: fontawesome icon not view

Post by Nidzo »

Try this: Go to Phoca Cart settings. At bottom of Display tab there is Theme option. Try to switch Icon type to Font awesome 4 or Font awesom 5 too see is there difference.
You can play with other options too.
User avatar
vodka
Phoca Enthusiast
Phoca Enthusiast
Posts: 53
Joined: 06 Apr 2022, 21:57

Re: fontawesome icon not view

Post by vodka »

tried. no difference. except when choosing a bootstrap icon - all buttons shrink
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: fontawesome icon not view

Post by Jan »

Hi, is this OK now? I see the icons on the site correctly displayed :idea:

Jan
If you find Phoca extensions useful, please support the project
User avatar
Nidzo
Phoca Professional
Phoca Professional
Posts: 387
Joined: 07 Nov 2018, 14:55

Re: fontawesome icon not view

Post by Nidzo »

Apparently @vodka used advice from post https://www.phoca.cz/forum/viewtopic.ph ... 65#p169931
but he still wants to use integrated Font awesome
placed in media/vendor/fontawesome-free/css/fontawesome.min.css that doesn't work.
immcom
Phoca Member
Phoca Member
Posts: 16
Joined: 04 May 2020, 12:59

Re: fontawesome icon not view

Post by immcom »

Tray to set icon style to
font-weight: 900;

and be sure that the font-family is Font Awesome, eg.
font-family: Font Awesome 5 Free;
Post Reply