-
AuthorPosts
-
July 30, 2018 at 8:30 am #991435
Hi,
I am having an issue with icons not showing up on my website.
Any idea on why this is happening?
URL: http://sydneylocalpainting.com/
Screenshot of missing icons: https://screenshots.firefox.com/dmdhWFGEgemoIIOi/www.sydneylocalpainting.com how it looks on local: https://screenshots.firefox.com/aAgJEGTTDkJ0cZRW/localhost
Error when trying to add font: http://prntscr.com/kcmt79
File trying to upload: http://www.sydneylocalpainting.com/wp-content/uploads/2018/07/my-icons-collection5-2.zipIt is working on my local server but not on my server.
Thank you
Best,
KostaJuly 30, 2018 at 10:57 am #991466Hey,
I edited one of your icon box element and chose a spray can icon and updated your page. It shows up fine on my end. Please edit your page and choose icon for each icon box element – https://kriesi.at/documentation/enfold/icon-box/ :)
Best regards,
YigitJuly 30, 2018 at 11:59 am #991475Hi,
Regarding the icons please note that I am trying to import a custom icon list as per previous question – the .zip file for the new icon list is located at the URL below:
http://www.sydneylocalpainting.com/wp-content/uploads/2018/07/my-icons-collection5-2.zip
When I try to upload it – it doesn’t work. What I want to be able to do is import the new icons and use them.
Also I am getting the following error:
Fatal error: Uncaught Error: Call to undefined function apply_filters_deprecated() in /home/kostaku/public_html/wp-content/themes/enfold_new/framework/php/class-framework-widgets.php:2234 Stack trace: #0 /home/kostaku/public_html/wp-includes/widgets.php(591): avia_instagram_widget->__construct() #1 /home/kostaku/public_html/wp-includes/widgets.php(720): WP_Widget_Factory->register(‘avia_instagram_…’) #2 /home/kostaku/public_html/wp-content/themes/enfold_new/functions.php(646): register_widget(‘avia_instagram_…’) #3 /home/kostaku/public_html/wp-content/themes/enfold_new/functions.php(650): avia_register_avia_widgets() #4 /home/kostaku/public_html/wp-settings.php(329): include(‘/home/kostaku/p…’) #5 /home/kostaku/public_html/wp-config.php(114): require_once(‘/home/kostaku/p…’) #6 /home/kostaku/public_html/wp-load.php(37): require_once(‘/home/kostaku/p…’) #7 /home/kostaku/public_html/wp-admin/admin.php(31): require_once(‘/home/kostaku/p…’) #8 /home/kostaku/public_html/wp-admin/update-core.php(10): require_once(‘/ in /home/kostaku/public_html/wp-content/themes/enfold_new/framework/php/class-framework-widgets.php on line 2234
This is happening when I try to update my WordPress version.
Any idea on how to fix this?
Thanks!
July 30, 2018 at 12:08 pm #991480Hi,
Could you please make sure you are using PHP 5.6 or higher? We would recommend PHP7.
Best regards,
YigitAugust 1, 2018 at 7:16 am #992194Hi Yigit,
I have updated to the latest PHP version and am still getting this error. Perhaps there is some option in the cPanel I can change?
Any input would be much appreciated.
Thanks
August 3, 2018 at 8:58 am #993105Any input on this? I have a suspicion this is a server error – I am on GoDaddy – is there any options i can check in the .ini file or something along those line?
Thanks
August 3, 2018 at 12:00 pm #993212Hi,
Where did you get the icon file? Please note that you can only upload icon fonts from fontello and flaticon. Did you get that collection from those sites?
Best regards,
IsmaelAugust 4, 2018 at 11:27 am #993480Hi Ismael,
Yes I did – I just tried to download an icon pack now and upload it. You can test for yourself by trying to upload a .zip file from Flaticon (which is what I tested with).
Is there anything else I can do?
Thanks
August 6, 2018 at 7:40 am #993818Hi,
I would like to test it, but I get the following error when I try to access the site.
The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.
Did you transfer the site?
Best regards,
IsmaelAugust 9, 2018 at 6:53 am #995258Hi,
The site is at bwpainting.com.au now.
Can you please check now?
Thanks
August 9, 2018 at 10:11 am #995342Hi,
Thanks for the info.
Can you enable PHP ZipArchive Extension? This is needed to import the zip files. Please ask your hosting provider if you need help with it.
Best regards,
IsmaelAugust 14, 2018 at 1:47 am #996925Hi Ismael,
Thanks for your help – but I see that ZipArchive seems to all ready be installed
http://prntscr.com/ki9gdx
By this forum it seems Archive_Zip is the same as ZipArchive.
https://au.godaddy.com/community/Managing-Web-Hosting/ZipArchive-need-to-be-enable/td-p/7942
Is there anything else I can try?
Thanks!
P.S. Maybe I can manually move over the icon files it refers to – I just need to know where to look and how to set it up. Thanks!August 15, 2018 at 4:32 am #997406Hi,
Yes, you can manually activate a custom icon. Follow these steps:
1.) In the wp-content > uploads folder, create a directory and name it “avia_fonts”.
2.) Create a custom folder for the font files inside the new directory and then name it whatever you want. We’ll name it “new” for example.
3.) Inside the “new” folder, extract the font files (.eot, .svg, .woff, .ttf) and the config.json file from the fontello zip file. The name of the files should be the same as the font folder.
4.) Once the font and the config files were extracted, create a charmap.php file.
5.) Inside the charmap.php file, add the char code of the icon fonts. Example:
<?php $chars = array(); $chars['new']['ue800'] = 'ue800'; $chars['new']['ue801'] = 'ue801'; $chars['new']['ue802'] = 'ue802'; $chars['new']['ue813'] = 'ue813'; $chars['new']['uf0e0'] = 'uf0e0'; $chars['new']['uf1e9'] = 'uf1e9';
We have 6 custom icon fonts above. Make sure that there’s a character code for each custom fonts in the config.json file, and the array key should be the same as the folder name “new”.
6.) After that, add this code in the functions.php file to register the new icon fonts in the database.
add_action('wp_head', function() { $font = get_option('avia_builder_fonts'); $current_user = wp_get_current_user(); $upload_dir = wp_upload_dir(); if ( isset( $current_user->user_login ) && ! empty( $upload_dir['basedir'] ) ) { if( !array_key_exists('new', $font) ) { $font['new'] = array ( 'include' => 'avia_fonts/new', 'folder' => 'avia_fonts/new', 'config' => 'charmap.php', 'origin_folder' => $upload_dir['baseurl'], ); update_option('avia_builder_fonts', $font); } } });
7.) Refresh the dashboard once and then remove the code from the functions.php file.
8.) Done.
Best regards,
IsmaelAugust 15, 2018 at 8:12 am #997459Hi,
Thank you for this guide. However I have tried to do this and it has not worked for me. I have added the code in the functions.php file as follows:
add_action('wp_head', function() { $font = get_option('avia_builder_fonts'); $current_user = wp_get_current_user(); $upload_dir = wp_upload_dir(); if ( isset( $current_user->user_login ) && ! empty( $upload_dir['basedir'] ) ) { if( !array_key_exists('flaticon', $font) ) { $font['new'] = array ( 'include' => 'avia_fonts/flaticon', 'folder' => 'avia_fonts/flaticon', 'config' => 'charmap.php', 'origin_folder' => $upload_dir['baseurl'], ); update_option('avia_builder_fonts', $font); } } }); add_action('wp_head', function() { $font = get_option('avia_builder_fonts'); $current_user = wp_get_current_user(); $upload_dir = wp_upload_dir(); if ( isset( $current_user->user_login ) && ! empty( $upload_dir['basedir'] ) ) { if( !array_key_exists('_light', $font) ) { $font['new'] = array ( 'include' => '_light/flaticon', 'folder' => '_light/flaticon', 'config' => 'charmap.php', 'origin_folder' => $upload_dir['baseurl'], ); update_option('avia_builder_fonts', $font); } } });
However the icons are still not showing up – is there anything else I can do?
Here is a screencast of me troubleshooting this issue:
https://screencast.com/t/lBoMGAs78oiThanks!
August 15, 2018 at 8:25 am #997460Never mind – I’ve fixed the issue :). I just had to activate it in the “Select PHP Version” page in the cPanel (even though I installed it in PEAR Packages section in cPanel).
August 15, 2018 at 2:32 pm #997556Hi HeadStudiosWeb,
Glad you got it working for you! :)
If you need further assistance please let us know.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.