probberechts / hexo-theme-cactus

:cactus: A responsive, clean and simple theme for Hexo.
https://probberechts.github.io/hexo-theme-cactus/
MIT License
3.2k stars 783 forks source link

Font awesome not showing in any browsers #126

Closed oliverbross closed 5 years ago

oliverbross commented 6 years ago

Hi,

I love the theme, but got one issue with it. Font awesome is not being shown on the page. For example:

Find me on , , and .

Basically, I'm getting empty squares above, and everywhere on the page where the font is being used.

Any ideas how I can fix this please?

Thank you.

probberechts commented 6 years ago

It's probably caused by your ad blocker which blocks social links. What happens if you disable all your browser plugins?

oliverbross commented 6 years ago

HI,

I am using latest mojave os by apple, tried the website published and unpublished in safari, chrome and firefox.

Looking at the code I actually spotted that the website is looking to load all fonts from /webfonts folder.

So all I did to fix this up in all browsers is to create that folder and copy all the fonts there. Then they showed up correctly on the page.

Can this be fixed in the main code, please? So it looks in the correct folder to load the fonts.

Many thanks.

probberechts commented 6 years ago

I've tested it with a clean installation and didn't encounter any issues. The FontAwesome fonts are actually in public/lib/font-awesome/webfonts and that is also the location where the css file links to. I.e., public/lib/font-awesome/css/all.min.css links to .../webfonts. I don't get how you end up at /webfonts.

oliverbross commented 6 years ago

Well, I understand what you are saying, but it just does not work. I have already done clean install of hexo and plugins, but ended up with the same problem. If I create /webfonts folder manually and copy them there, everything works fine.

I wonder if the problem might be caused by a certain plugin.

Just have a look at my personal website: www.oliverbross.com . Maybe you can spot the problem?

I will give it one more go and delete hexo from my mac laptop and start scratch. I love your theme and I think it is one of the best. Need to really get to the bottom of this. Many thanks.

probberechts commented 6 years ago

I don't see a problem. Over here the FontAwesome icons are displayed properly when I open your website.

probberechts commented 6 years ago

Could you resolve the issue?