Page 1 of 1

icons not showing up

Posted: Sat Feb 07, 2015 8:19 pm
by A760
Hello everyone,

I have an issue with the small icons in V2.0.1.1.1
Sometimes they are showing up, sometimes not.
Please have a look at the screen shots.

Is it a common problem and is there an easy solution for this?

Thank you!

Re: icons not showing up

Posted: Sat Feb 07, 2015 8:46 pm
by viethemes
Hi,
Could you provide your site url, so I can take a look at the problem closer?

Re: icons not showing up

Posted: Sun Feb 08, 2015 12:25 am
by A760
Hi,
sure,here it is.

thank you

Re: icons not showing up

Posted: Sun Feb 08, 2015 12:48 am
by thefmk
Dude i was having this problem. But i solved. I think the reason is about "www".

Because when I enter my site without www. I can not see my icons.

And I just solved with:

config.php ( If you want to use yoursite with "www" )
define('HTTP_SERVER', 'http://www.yoursite.co.uk/');
define('HTTPS_SERVER', 'http://www.yoursite.co.uk/');

.htaccess
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.yoursite\.co\.uk
RewriteRule (.*) http://www.yoursite.com.uk/$1 [R=301,L]


If you want to use yoursite without "www"
config.php

define('HTTP_SERVER', 'http://yoursite.co.uk/');
define('HTTPS_SERVER', 'http://yoursite.co.uk/');

.htaccess
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.yoursite\.co\.uk$
RewriteRule ^(.*)$ http://yoursite.co.uk/$1 [L,R=301]



NOTE: please back up your system. It worked for me, but it might not be worked for you. And please tell me if it works.

Re: icons not showing up

Posted: Sun Feb 08, 2015 1:10 am
by viethemes
@A760, you should use only one domain for your site www or non-www.
If you want the domain with www, you can try the thefmk's solution :)

Re: icons not showing up

Posted: Sun Feb 08, 2015 2:37 am
by A760
thefmk wrote:Dude i was having this problem. But i solved. I think the reason is about "www".

Because when I enter my site without www. I can not see my icons.

And I just solved with:

config.php ( If you want to use yoursite with "www" )
define('HTTP_SERVER', 'http://www.yoursite.co.uk/');
define('HTTPS_SERVER', 'http://www.yoursite.co.uk/');

.htaccess
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.yoursite\.co\.uk
RewriteRule (.*) http://www.yoursite.com.uk/$1 [R=301,L]


If you want to use yoursite without "www"
config.php

define('HTTP_SERVER', 'http://yoursite.co.uk/');
define('HTTPS_SERVER', 'http://yoursite.co.uk/');

.htaccess
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.yoursite\.co\.uk$
RewriteRule ^(.*)$ http://yoursite.co.uk/$1 [L,R=301]



NOTE: please back up your system. It worked for me, but it might not be worked for you. And please tell me if it works.
Thank you!

It looks like the problem is solved. Now I need to find out, why the sitemap.xml is not showing up, something is blocking it. Thanks once again for fixing the icons.

Re: icons not showing up

Posted: Sun Feb 08, 2015 2:42 am
by A760
Now I need to find out, why the sitemap.xml is not showing up, something is blocking it.
Oops, the problem was in .htaccess, original sitemap.xml was blocking the new one.

Re: icons not showing up

Posted: Sun Feb 08, 2015 3:00 am
by thefmk
you mean everything OK? :)

Re: icons not showing up

Posted: Sun Feb 08, 2015 4:38 am
by A760
Yes, everything looks fine now!

Re: icons not showing up

Posted: Sun Feb 21, 2016 10:02 pm
by OCdude
this worked for me, see below, i found it in this post viewtopic.php?f=20&t=148516

Put this text snippet in your .htaccess file.

# Fix Icons
<FilesMatch ".(ttf|otf|eot|woff)$">
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
</IfModule>
</FilesMatch>

Re: icons not showing up

Posted: Tue Jul 12, 2016 8:17 am
by danj9700
Hi, I have edited the code as below for redirection of www. to non www. (the icons are working for www. and non www.)

When I try to log in to admin after the update. I can't.
Any idea whats wrong?

When I reverse the code back to the original code, I can log in again. (the icons do notwork on www. and they work on non www.)

I'm using Opencart 2.0.3.1

config.php
define('HTTP_SERVER', 'http://yoursite.co.uk/');
define('HTTPS_SERVER', 'http://yoursite.co.uk/');

.htaccess
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.yoursite\.co\.uk$
RewriteRule ^(.*)$ http://yoursite.co.uk/$1 [L,R=301]

Re: icons not showing up

Posted: Wed Oct 12, 2016 4:20 pm
by ravidevt
below is worked for me

# Fix Icons
<FilesMatch ".(ttf|otf|eot|woff)$">
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
</IfModule>
</FilesMatch>

Re: icons not showing up

Posted: Thu Feb 13, 2020 9:19 am
by kasun0777

Code: Select all

# Fix Icons
<FilesMatch ".(ttf|otf|eot|woff)$">
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
</IfModule>
</FilesMatch>
This is worked for me always :) :)
Thank you.