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!
Attachments
ICONSPROB.jpg (85.51 KiB) Viewed 17164 times
ICONSPROB2.jpg (64.24 KiB) Viewed 17164 times
Could you provide your site url, so I can take a look at the problem closer?
http://www.viethemes.com - OpenCart turtorials, news, tips and stricks, extension
Our extensions:
Visual Theme Editor - Powerful tool for customizing style of any theme visually
Live Theme Editor - Customize layout, colors, backgrounds, fonts of the default theme
Theme Animation - Animation Editor for any theme
Extra Positions PRO, Custom JavaScript, Custom CSS and others
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.
If you want the domain with www, you can try the thefmk's solution

http://www.viethemes.com - OpenCart turtorials, news, tips and stricks, extension
Our extensions:
Visual Theme Editor - Powerful tool for customizing style of any theme visually
Live Theme Editor - Customize layout, colors, backgrounds, fonts of the default theme
Theme Animation - Animation Editor for any theme
Extra Positions PRO, Custom JavaScript, Custom CSS and others
Thank you!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.
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.
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>
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]
Code: Select all
# Fix Icons
<FilesMatch ".(ttf|otf|eot|woff)$">
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
</IfModule>
</FilesMatch>


Thank you.
Responsive Website Design | Opencart E-commerce Development | Search Engine Optimization (SEO)
Skype: lkdesigners
Website: www.lkdesigners.com
Users browsing this forum: No registered users and 12 guests