- Priority: 0
- Status: Closed
- Theme: Alysum
-
Assigned To:
Fred
- Private: No
- Open Date: 16.01.23, 15:07
- Opened by: Sylvain Duval
- Closed by: Anonymous Submitter
- Closed on:
- Reason: Not a bug
Ticket #24163 - Custom font installation
Hello,
I followed the tutorial in the Alysum documentation for installing the “Neuropol” font with the ftp (https://alysum5.promokit.eu/promokit/documentation/) and it didn’t work.
It concerns the web site : http://mlv.lokris.ovh/
My theme.css :
/themes/alysum/assets/css/theme.css
@font-face {
font-family: 'neuropolregular'; src: url('ftp://userw0129@lokris.net/themes/alysum/assets/fonts/neuropol.eot'); src: url('neuropol.eot?#iefix') format('embedded-opentype'), url('ftp://userw0129@lokris.net/themes/alysum/assets/fonts/neuropol.woff2') format('woff2'), url('ftp://userw0129@lokris.net/themes/alysum/assets/fonts/neuropol.woff') format('woff'), url('ftp://userw0129@lokris.net/themes/alysum/assets/fonts/neuropol.svg#neuropolregular') format('svg'); font-weight: normal; font-style: normal;
}
Could you take a look and tell me what is blocking it?
Sincerely,
Comments
Hi, Sylvain.
As I can see the path to font files is wrong. Browser is not able to open ftp links.
Please try to change the path exactly as described in the documentation
Hi, Fred.
I changed the path exactly as described in the documentation and I have completed the following steps but I still do not have access to my font in the back office.
My theme.css file :
@font-face {
}
I have a more urgent request, the website crashed
I followed the tutorial but at this step:
“Now copy that code and paste it to the beginning of the file /themes/alysum/assets/css/theme.css” I think I broke the “theme.css” file, now my site display is buggy. Do you have a backup of the Alysum theme.css file in version v.8.0.0 ?
I made a mistake, this is not v8.0.0.Here is the version:
Theme “Alysum” v.5.6.0
Theme Settings v.2.0.2
prestashop:1.7.6.8
php_version:7.1.33
Hi, Sylvain.
See attached theme.css file for v.5.6.0
Attachments:
I guess something else is broken because it is still broken.
Could you please check again on http://mlv.lokris.ovh/ because I tried to follow your documentation again, but I still can’t choose Neuropol font ?
It looks like fine for me https://take.ms/OTZiy
and font is also available in the list https://take.ms/ZO95n
I went to theme settings, general tab, heading font section and I selected neuropol font, then I cleared my caches.
The theme settings had no impact on the fonts in my front office.
I then went to the home page in the creative front builder but neuropol does not appear in the custom settings.
Do you use some third party cache service?
There is no fond added in the file http://mlv.lokris.ovh/themes/alysum/assets/css/theme.css, but I see it if I open the file via FTP
I asked my host to clear cache but it still doesn’t work
Could you have a look at it please ?
as I can see now, the font is added to the file http://mlv.lokris.ovh/themes/alysum/assets/css/theme.css
Yes but I can’t choose it on my pages default fonts, it is “not found”.
See screenshot
Attachments:
If you want to have it in Creative Elements, add the font name to the file
/modules/creativeelements/includes/fonts.php
what do have I to write exactly ? ‘Zilla Slab’ ⇒ self::GOOGLE,
‘Neuropol’ ⇒ self::???
I have no idea, see that file first time. Try to experiment
That’s not our module, as you know
Ok I’ve done it.
Thanks
You are welcome!
Does it works with “self::GOOGLE” or there is another string for local fonts?
I didn’t try, I’ve created a self::LOCAL
Ok