Page 1 of 1
Problem with Stylesheet
Posted: Mon Feb 16, 2015 4:14 am
by Slayss
Hello to all
I tried to change background colour of default OpenCart 2.0.1.1 theme in Stylesheet via cpanel, but without any result.
I downloaded and edited and again uploaded it but without any result.
Thanks,
Angel
Re: Problem with Stylesheet
Posted: Mon Feb 16, 2015 6:58 pm
by viethemes
Did you try to clear cache of browser via pressing ctrl + f5?
Or you may like my own extension
Live Theme Editor to customize theme completely.
Re: Problem with Stylesheet
Posted: Mon Feb 16, 2015 7:15 pm
by RoelSITB
You can try to delete it and upload it again. That works sometimes for me.
Re: Problem with Stylesheet
Posted: Mon Feb 16, 2015 10:14 pm
by Slayss
Hello,
Thanks for Your posts!
As You are suggest me, I tried to deleted file and uploaded it again, but without result also I tried to clean cache via ctr+f5 and direct via Chrome brawser, but unfortunately without result.
I've noticed the follow thing, the color of background in default theme is white, right? But in the code, the color is #666666 .
Re: Problem with Stylesheet
Posted: Mon Feb 16, 2015 10:41 pm
by yodapt
Maybe you have a mod that is overriding the files you are changing, have you confirmed that?
Re: Problem with Stylesheet
Posted: Tue Feb 17, 2015 5:04 am
by Slayss
I don't know, what's that supposed to mean?
Re: Problem with Stylesheet
Posted: Tue Feb 17, 2015 6:22 am
by RoelSITB
Can you post the code of the stylesheet where you edit this?
Thanks.
Re: Problem with Stylesheet
Posted: Tue Feb 17, 2015 7:00 am
by Slayss
Here You are,
html, body {
height: 100%;
margin: 0;
padding: 0;
font-family: 'Open Sans', sans-serif;
font-size: 12px;
color: #666666;
font-weight: 500;
line-height: 18px;
text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6, p {
margin-top: 0;
}
.page-header {
vertical-align: middle;
margin: 15px 0;
padding: 0;
border-bottom: none;
}
.page-header h1 {
font-family: 'Open Sans', sans-serif;
font-weight: 400;
font-size: 30px;
color: #848484;
display: inline-block;
margin-bottom: 15px;
I'm talking about #666666
Re: Problem with Stylesheet
Posted: Tue Feb 17, 2015 9:59 am
by viethemes
Could you provide your site url, so we can take a look at the problem closer?
Re: Problem with Stylesheet
Posted: Tue Feb 17, 2015 3:53 pm
by tifannywatch
I have same feeling with yodapt, there might be other css rules which overridden your css rule, try to change your code with this :
It would be better if you provide your website url so we can check more detail.
Re: Problem with Stylesheet
Posted: Tue Feb 17, 2015 10:50 pm
by Slayss
Re: Problem with Stylesheet
Posted: Tue Feb 17, 2015 11:34 pm
by viethemes
Hi,
If you want to change background color you should try this code:
Note that change red color to which color you want.
The color #666666 in your stylesheet is color of texts not background color.
Re: Problem with Stylesheet
Posted: Wed Feb 18, 2015 1:03 am
by Slayss
Hello,
I changed it, but without result.
html, body {
background-colour: black;
}
height: 100%;
margin: 0;
padding: 0;
font-family: 'Open Sans', sans-serif;
font-size: 12px;
color: #000000;
font-weight: 500;
line-height: 18px;
text-rendering: optimizeLegibility;
Re: Problem with Stylesheet
Posted: Wed Feb 18, 2015 12:32 pm
by viethemes
Re: Problem with Stylesheet
Posted: Wed Feb 18, 2015 8:23 pm
by Slayss
Hi,
Slip of the pen
Here is:
html, body {
background-color: black;
}
height: 100%;
margin: 0;
padding: 0;
font-family: 'Open Sans', sans-serif;
font-size: 12px;
color: #000000;
font-weight: 500;
line-height: 18px;
text-rendering: optimizeLegibility;
I tried to edited direct in cpanel, to deleted from cpanel and to edited in wordpad and to upload it again, but the background hasn't changed.
Re: Problem with Stylesheet
Posted: Wed Feb 18, 2015 9:20 pm
by viethemes
Hi,
I don't see the change in stylesheet.css file. Did you modify this file: catalog/view/theme/default/stylesheet/stylesheet.css?
I see that you have modified the wrong file: admin/view/stylesheet/stylesheet.css. This stylesheet for the admin not the front-store.
Re: Problem with Stylesheet
Posted: Wed Feb 18, 2015 9:45 pm
by Slayss
Hi,
Thanks for Your correction, it's my wrong, I have edited the wrong file.
Here is copy direct from the file - public_html/catalog/view/theme/default/stylesheet/stylesheet.css
body {
background-color: black;
}
font-family: 'Open Sans', sans-serif;
font-weight: 400;
color: #666;
font-size: 12px;
line-height: 20px;
}
h1, h2, h3, h4, h5, h6 {
color: #444;
http://angelgruev.com/
It can't effect the change, except If I misunderstand something.
P.S. After few refreshes... it works!
Thank you very much for Your help!
Re: Problem with Stylesheet
Posted: Fri Feb 20, 2015 5:19 pm
by viethemes
Slayss wrote:Hi,
Thanks for Your correction, it's my wrong, I have edited the wrong file.
Here is copy direct from the file - public_html/catalog/view/theme/default/stylesheet/stylesheet.css
body {
background-color: black;
}
font-family: 'Open Sans', sans-serif;
font-weight: 400;
color: #666;
font-size: 12px;
line-height: 20px;
}
h1, h2, h3, h4, h5, h6 {
color: #444;
http://angelgruev.com/
It can't effect the change, except If I misunderstand something.
P.S. After few refreshes... it works!
Thank you very much for Your help!
Glad to hear that the problem is solved.
About CSS code, there is a wrong thing, it should be like below:
Code: Select all
body {
background-color: black;
font-family: 'Open Sans', sans-serif;
font-weight: 400;
color: #666;
font-size: 12px;
line-height: 20px;
}