Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1405944

    Hi,

    I hope that someone could help me out:
    I create my new site locally with XAMPP at my Windows 10 desktop computer:
    XAMPP, WordPress (6.2), ENFOLD (5.5) is all newest version.
    It is a network/multisite installation (!) at XAMPP/Localhost.

    All is fine, I can import the .txt file of for the themesettings.
    .zip files are approved/added in the network settings so that I can upload ZIP files, too.

    I try now to upload the ZIP file of the font “OSWALD”; I could successfully upload the font ZIP via the media library, but then this error message occurs:
    https://imgur.com/a/kpFMJMY

    I could successfully upload the font ZIP to the media library!

    I have no problems working with my WP network installation locally with XAMPP, I can add plugins, I can add ENFOLD’s themesettings file etc. – there is only a problem with ENFOLD’s custom font manager.

    This font ZIP file has worked in my online ENFOLD perfectly, it is simply the same file, but only locally the upload fails.
    Is there a workaround to simply install the font manually WITHOUT THE CUSTOM FONT MANAGER of ENFOLD?
    Simply adding the font into the uploads folder (avia_fonts -> type_fonts) seems to be not enough.

    Thanks for your help.

    #1406006

    Hey BeeCee,
    It sounds like the PHP ZipArchive Extension is not enabled on the XAMPP Localhost, this is what allows the server to extract the zip file.
    Or it could be the file permissions for the directories inside the uploads directory.
    If this doesn’t help try linking to your font file so we can check on our test site, perhaps the file is corrupt.
    The only workaround would be to manually add the font in the uploads folder and use @font-face css, this site may help you.

    Best regards,
    Mike

    #1406086

    Thank you, Mike, that was indeed the problem and I have changed that:

    The php.ini file is in the “php” folder in XAMPP.
    The ZIP extension must be activated as shown in the screenshot, so I was able to successfully integrate the ZIP files of the fonts in the ENFOLD theme settings, now it is working fine.

    #1406087

    Hi,
    Glad we were able to help and thank you for sharing your solution as it may help future readers, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.

    Best regards,
    Mike

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Add custom fonts to LOCALHOST failed’ is closed to new replies.