
-
AuthorPosts
-
April 8, 2015 at 7:51 am #425109
Hi. I am having a problem with the icons not displaying when viewing the site in google chrome on mac. This seems to affect all – e.g. arrows on sliders, Facebook icons etc. Just get little squares.
Also – in Safari they display properly but there is a white line 1 pixel on right of the main slider on the home page. Is this just me?
Thanks
April 8, 2015 at 2:17 pm #425294April 8, 2015 at 3:15 pm #425355Hi Yigit,
Thanks
I have edited the .htaccess file so it looks like this (below) now but it still displaying no icons? Cache cleared in Chrome, restarted as well, same thing?
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule><FilesMatch “\.(ttf|otf|woff)$”>
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin “*”
</IfModule>
</FilesMatch>
# END WordPressApril 9, 2015 at 5:29 pm #426091Hi!
Try adding just this.
Header set Access-Control-Allow-Origin “*”
To see what happens. If your using a caching plugin then be sure to clear it’s cache.
Cheers!
ElliottApril 9, 2015 at 6:23 pm #426126Hi Elliuot,
Thanks, but this is still not working for me. I have cleared all browsing data and even tried on a newly installed mac in both Firefox and Google but still the icons are not appearing.
For reference the .htaccess file looks like this at present:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
Header set Access-Control-Allow-Origin “*”
# END WordPressApril 10, 2015 at 11:09 pm #426823Hi,
Can you please create us a temporary FTP account? post it here as a private reply.
Regards,
JosueApril 11, 2015 at 6:43 am #426929This reply has been marked as private.April 11, 2015 at 9:32 am #426971Hi!
I see, as you are using nginx as the webserver these htaccess configurations won’t work, you’d need to ask your web hosting provider to enable CORS on nginx:
http://enable-cors.org/server_nginx.htmlAlso, this issue occurred because apparently you changed the web address from http://www.website.com to website.com so reverting that will fix the issue.
Regards,
JosueApril 11, 2015 at 10:26 am #426998Thanks Josue. Changing back to www. did the trick! Will request the CORS to be enabled as well.
April 11, 2015 at 11:01 am #427009Glad to hear that :)
Regards,
Josue -
AuthorPosts
- You must be logged in to reply to this topic.