-
AuthorPosts
-
March 15, 2017 at 7:07 am #761175
Hi Team,
is it possible to remove (perhaps per function snippet) the complete entypo-fontello fonts from the site. i use my own icons- so i dont need the entypo icons.Thank you
March 15, 2017 at 7:48 am #761190Hey siteraum,
You want to locate enfold>config-templatebuilder>avia-template-builder>php>font-manager.class.php
Remove or comment out from line 488:
include($config[‘include’].’/’.$config[‘config’]);
Best regards,
Jordan ShannonMarch 15, 2017 at 7:56 am #761194Hi Jordan,
thank you for answer. i comment the line out (you can see link- picture) but the entypo-fontello.woff is still loading (see link-picture)thank you
March 15, 2017 at 8:10 am #761198Hi,
The images are not loading for me. You can locate those files at:
enfold > config-templatebuilder > avia-template-builder > assets > fonts
Best regards,
Jordan Shannon- This reply was modified 7 years, 9 months ago by Jordan Shannon.
March 15, 2017 at 8:18 am #761204ah sorry for the images- i blocked it,
i see the fonts in asset> fonts, but how can i remove this? (private link)- i mean that the url complete disable- So the url is not retrieved- sorry about my english…
when i look in the page source the url to the entypo fonts is there- and i want to remove the url calling
thank youMarch 15, 2017 at 8:21 am #761208Hi,
You would want to search the root folder and remove all references to those specific files.
Best regards,
Jordan ShannonMarch 15, 2017 at 8:23 am #761209ah okay thank you Joardan,
i wish you an nice weekMarch 15, 2017 at 5:13 pm #761512Hi,
No problem. If you need additional help please do not hesitate to contact us.
Best regards,
Jordan ShannonJune 9, 2017 at 10:57 am #805998Jordan- can we disable entypo-fontello in our child theme functions file?
- This reply was modified 7 years, 6 months ago by etalented.
June 12, 2017 at 4:23 pm #806939Hi,
It would essentially be the same thing, you would have to cover every instance it within the theme.
Best regards,
Jordan ShannonJuly 14, 2020 at 9:25 am #1230234I found a way to do that without modify core files:
//Delete icons from Enfold add_filter('avf_default_iconfont','avia_change_default_icon_font_para', 10, 1); function avia_change_default_icon_font_para($fonts) { return null; }
Regards,
- This reply was modified 4 years, 5 months ago by vgsystems.
July 14, 2020 at 6:39 pm #1230379Hi,
Thank you for sharing!
Best regards,
Jordan ShannonMarch 15, 2022 at 11:44 am #1344530Hi,
what would @vgsystems solution look like for the newest enfold version? (using a child theme)
Best regards
March 16, 2022 at 9:02 am #1344692Hi,
@webpunks: The same filter (avf_default_iconfont) should still work in the latest version of the theme.
// disable entypo-fontello add_filter('avf_default_iconfont', function($icon_font) { return null; }, 10, 1);
Best regards,
IsmaelMarch 16, 2022 at 9:30 am #1344696Hi @Ismael!
Unfortunately, this leads to a Fatal error: Uncaught TypeError: array_merge():
Argument #1 must be of type array, null given in //wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-font-manager.php:428Best regards
March 16, 2022 at 12:27 pm #1344728Hi,
I tested this filter at the top of my child theme functions.php and it worked correctly with no error in v4.9 in a new install// disable entypo-fontello add_filter('avf_default_iconfont', function($icon_font) { return null; }, 10, 1);
perhaps you have another customization causing a conflict.
Please note that if you use this function you will not be able to use the Iconfont Manager in the theme options.Best regards,
MikeMarch 16, 2022 at 2:36 pm #1344745Hi @Mike,
thank you for testing. We found out, that the problem only appears when using custom fonts. We are not using the iconfont manager but it seems it is also related to the custom font manager… is there a way to remove entypo-fontello AND using a custom font (not a custom icon font)?
Best regards
March 17, 2022 at 1:25 am #1344811Hi,
I tested with the function above and installed a new font with the Custom Font Manager with no issues. Try extracting your custom font zip file and rezip only the font file with no inner directories and extra files. For example, some custom fonts place the file in a zip inside the zip.Best regards,
MikeMarch 18, 2022 at 8:57 am #1345015Hi @Mike,
thank you. We tested the same, and it worked now – but it only worked on 1 of 2 servers. We made a test with PHP 7.4 and 8.0 – both with clean installs.
On our cloudways server (PHP 8) it throws the following error:
PHP Fatal error: Uncaught TypeError: array_merge(): Argument #1 must be of type array, null given in /wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-font-manager.php:428
This happens on a new site, clean install, fresh child theme and only inserted the code given in the functions.php. On our other server (hetzner, PHP 7.4) the same test works fine without errors.
By the way the error is already thrown inside WordPress Admin when opening the Enfold Settings.
Could the problem be related to the PHP version?
Best regards
March 18, 2022 at 3:02 pm #1345096Hi,
Thanks for the feedback, I tested with PHP v8 and also received the error, I submitted this to the Dev Team and will reply here when I hear back.
Thank you for your patienceBest regards,
MikeMarch 19, 2022 at 5:34 pm #1345192Hi,
The Dev Team has replied with this function and I tested it on PHP v8 and it is working.add_filter('avf_default_iconfont', function($icon_font) { return array(); }, 10, 1);
Thank you for your patience
Best regards,
MikeMarch 20, 2022 at 10:49 am #1345240March 20, 2022 at 3:03 pm #1345246Hi,
Glad we were able to help, 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 -
AuthorPosts
- The topic ‘Completely remove entypo-fontello’ is closed to new replies.