Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Neighborhood › Icons displaying incorrectly
New Landing › How can we help? › Themeforest Theme Support › Neighborhood › Icons displaying incorrectly
- This topic has 18 replies, 3 voices, and was last updated 10 years by Mohammad – SUPPORT.
-
Posted in: Neighborhood
-
October 6, 2014 at 12:39 pm #117564
Hi there,
My issue is the following. Instaed of having proper icons, as the search one, or the cart one, or the one to choose language, etc. I have wrong ones (please check the attachment)
I ve noticed that this problem doesn’ t exist anymore if I disable the caching, so there is clearly something wrong with the cached version of the theme.
In order to fix it I d like to know where all these icons are saved in the theme so I can purge those files from my cdn and display the correct version of the theme
Regards
Fabio
ps. all plugins and theme are at the current version
Attachments:
You must be logged in to view attached files.October 6, 2014 at 12:46 pm #117569Hi,
Can you provide us your website url?
-Rui
October 6, 2014 at 12:48 pm #117571October 6, 2014 at 12:54 pm #117576Hi,
This is probably related to your cdn configuration or htaccess file. You have the error below in the Javascript console.
https://www.dropbox.com/s/lmamzi16p6bnxul/access_control-origin_issue.png?dl=0-Rui
October 6, 2014 at 12:56 pm #117580Thanks Rui
As I said before if I turn off the cache the errors disappear.
I thought at flushing the cache of those files but I dont know where they re.
Do you have better recommendations?
October 6, 2014 at 2:25 pm #117614The cache plugin you are using probably has also cdn configurations, try to disable them.
-RuiOctober 6, 2014 at 2:35 pm #117623Yes it does
And as I said before when I disable it teh icons display perfectly
Having said that, I dont want to stop using the cache and the cdn, but flush only the wrong files
Can you please tell me in which folders of the theme can I find all these icons, please
Regards
Fabio
October 6, 2014 at 10:53 pm #117776Cacching is one thing, CDN it’s another.
Font awesome it’s just fonts it don’t exist images folder, that font isn’t being load because of your cdn settings.-Rui
October 7, 2014 at 11:36 am #117995Dear Rui
This morning I ve contacted the support of my cdn and my host.
We have tried different things
rewriting .htaccess, modifying css as in https://wordpress.org/support/topic/some-icons-do-not-display-in-chrome, deleting cache, purging cdn, etc. but with no success
they have als checked all my settings from my admin page and http://ftp..they result ok
We have also noticed that this issue only happens on chrome or firefox but not on safari from iPad, and only when cdn is on
one further info is that this issue has only started n september when wodpress woocommerce the theme and all the other plugins have been updated
Do you have any ideas?
Where can I find the icons in the theme folder…maybe i can try to exclude it from the cdn
Regards
Fabio
October 7, 2014 at 1:01 pm #118079Hi,
Please insert this code at functions.php of child theme.function sf_enqueue_styles_new(){ wp_deregister_style('fontawesome'); wp_dequeue_style( 'fontawesome' ) wp_register_style('fontawesomeNew', '//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css', array(), NULL, 'all'); wp_enqueue_style('fontawesomeNew'); } add_action('wp_enqueue_scripts', 'sf_enqueue_styles_new', 111);
Hope that should work sure 100%.
Thanks
MohammadOctober 7, 2014 at 2:07 pm #118113Hi Mohammmad
Thanks for your tips
Unofrtunately it doesnt work.
I ve created a child theme in my test website (same as the production one)
When I create a functions.php file with
<?php
function sf_enqueue_styles_new(){
wp_deregister_style(‘fontawesome’);
wp_dequeue_style( ‘fontawesome’ )
wp_register_style(‘fontawesomeNew’, ‘//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css’, array(), NULL, ‘all’);
wp_enqueue_style(‘fontawesomeNew’);
}
add_action(‘wp_enqueue_scripts’, ‘sf_enqueue_styles_new’, 111);?>
it just returns me a blank page
So i guess there is something not correct
Regards
Fabio
October 7, 2014 at 5:05 pm #118220Did you show them the image error I attached in previous reply?
This is error of Access-Control-Allow-Origin , when resources are loaded from a different domain.Check this documentation.
-Rui
October 7, 2014 at 6:59 pm #118257Dear Rui
Unfortunately I have already tried to edit .htaccess with the support team of maxcdn. They say that the header is not being rewritten by .htaccess. if it was it would have Access-Control-Allow-Origin “*” in it’s header.
That can only lead me to your hosting provider and their execution.Hope to get some support from their side
Regards
Fabio
October 7, 2014 at 11:54 pm #118320Ok. Something is wrong or in the server or the CDN.
Let us know what they figure out.-Rui
October 8, 2014 at 1:25 pm #118550This reply has been marked as private. -
Posted in: Neighborhood
You must be logged in and have valid license to reply to this topic.