Post by Pipson » Fri Dec 19, 2014 1:34 am

Any ideas how i can change that blue bar? to something similiar used here like on the above of this page? black background and whitish/greying writing?

Newbie

Posts

Joined
Thu Dec 18, 2014 12:32 pm

Post by Selective555 » Fri Dec 19, 2014 3:09 pm

The colors are controlled in the style sheet, but an easy solution is to browse Themes and pick a new one.

You can pay for themes if you want, but there's currently 214 free themes to choose from
http://www.opencart.com/index.php?route ... earch=free

Active Member

Posts

Joined
Wed Nov 26, 2014 1:29 pm

Post by opencarthow.com » Fri Dec 19, 2014 6:58 pm

Pipson wrote:Any ideas how i can change that blue bar? to something similiar used here like on the above of this page? black background and whitish/greying writing?
You can use this extension to modify style, colors, backgrounds, fonts of your theme: http://www.opencart.com/index.php?route ... n_id=20151

Our free extensions:
Advanced Layout System, Display Raw Product Description in Product List, Minimum Order Amount Requirement, Add to Wish List Redirect for Anonymous Customer


User avatar
Active Member

Posts

Joined
Fri Nov 28, 2014 10:41 am


Post by Selective555 » Fri Dec 19, 2014 7:13 pm

I just noticed something weird......

I never messed with Themes until now, and none of those Themes available from OpenCart are compatible with OpenCart 2.0, so ignore my suggestion about trying any of those.

So for my Theme folder, I copied the "Default" Theme folder and placed it in the Theme folder with "Default" but named something else. Then as a test I set that as my new Theme in my Admin panel, and tried making small simple changes only to the color codes in the stylesheet.css file, but then I didn't notice any changes, so then I tried changing all color codes to "000000" for solid black, and still no change to any color in the shop. I tried deleting all browser cookies, closing all browser windows, but it still looks exactly the same as if it's not effected by the script change.

Why is this happening and what am I doing wrong? By changing all color codes to "000000" the page and menu bar should all be solid black, but the page is still white and the menu bar is still blue!

!?!?!?

Active Member

Posts

Joined
Wed Nov 26, 2014 1:29 pm

Post by Pipson » Fri Dec 19, 2014 11:43 pm

i tried editing the file to solid black and saw no changes...

Newbie

Posts

Joined
Thu Dec 18, 2014 12:32 pm

Post by Selective555 » Sat Dec 20, 2014 8:25 am

I did more troubleshooting with this.....

Next I tried making a copy of the stylesheet.css for "default" Theme template, and changed all color codes there to "000000" for solid black. Saved it, then resaved it again in Admin > System > Settings > Template and still no change in the colors at all!

I did notice that when I had the name of the theme template changed, it disabled my added extensions!

?!?!?!

What's going on here?
Last edited by Selective555 on Sat Dec 20, 2014 10:18 am, edited 1 time in total.

Active Member

Posts

Joined
Wed Nov 26, 2014 1:29 pm

Post by Selective555 » Sat Dec 20, 2014 8:34 am

I just deleted all browser cookies and closed all of my browsers, and it worked.... my default theme is now all black, except for a white background, I'll see about that in a minute.

So....... turns out that something is TEMPLATE BLOCKING our alternative templates!!!

Anyone care to enlighten us about what it is so we can smash the hell out of it and fix this problem?

Active Member

Posts

Joined
Wed Nov 26, 2014 1:29 pm

Post by Selective555 » Sat Dec 20, 2014 9:41 am

I'm still looking for the script for the Blue Bar... and why only themes named "default" work and others don't!

but I did find this....

There is no set code for the background color, so
go to

Code: Select all

/catalog/view/theme/default/stylesheet/stylesheet.css
then find this at the top of the page

Code: Select all

body {
	font-family: 'Open Sans', sans-serif;
	font-weight: 400;
	color: #666;
	font-size: 12px;
	line-height: 20px;
}
and replace with this

Code: Select all

body {
	font-family: 'Open Sans', sans-serif;
	font-weight: 400;
   background-color: #000000;
	color: #666;
	font-size: 12px;
	line-height: 20px;
}
Presto!!!
You now have a place to change the background color of your shop!
Last edited by Selective555 on Sat Dec 20, 2014 10:18 am, edited 1 time in total.

Active Member

Posts

Joined
Wed Nov 26, 2014 1:29 pm

Post by Selective555 » Sat Dec 20, 2014 10:16 am

BINGO
I found the BLUES.......

Code: Select all

229ac8
Is the background Blue... for the bar
and it repeats all through the css file so they all need to be changed.

Code: Select all

23a1d1
Is the light shade Blue... used during hover
and also repeats all through the css file so they all need to be changed also.

Code: Select all

1f90bb
Is the dark shade Blue... used during hover
and also repeats all through the css file so they all need to be changed also.

Code: Select all

145e7a
Is the dark dark shade of blue... used as the bottom border of the blue bar
and also repeats all through the css file so they all need to be changed also.

For some reason, you won't see these changes as you make them, just make these changes and after removing all browser cookies and closing all browser windows, you'll see the change as long as the template is titled "default".
Last edited by Selective555 on Sat Dec 27, 2014 8:30 pm, edited 3 times in total.

Active Member

Posts

Joined
Wed Nov 26, 2014 1:29 pm

Post by Selective555 » Sat Dec 20, 2014 10:28 am

Alright.... I know I did that right, but the bar is still Blue, and the colors I changed them to never showed.

Oddly, other colors I change do show a change right away, like the background color. So... there is a problem with the way the css script is being read or held in memory.

I declare this a WTF program error. Can anyone fix it?

The Blues are not changing, even after I cleared all browser cookies and closed all browser windows! WTF

Active Member

Posts

Joined
Wed Nov 26, 2014 1:29 pm

Post by yodapt » Sat Dec 20, 2014 11:34 am

It's not a bug, you must have forgotten to change the css paths on header.tpl

Opencart Developer - My Extension Showcase
Contact me at aeon.yoda@gmail.com


User avatar
Active Member

Posts

Joined
Fri Jun 17, 2011 6:39 pm


Post by Selective555 » Sat Dec 20, 2014 12:24 pm

yodapt wrote:It's not a bug, you must have forgotten to change the css paths on header.tpl
So if the theme is titled "default" then in this file

Code: Select all

/catalog/view/theme/default/template/common/header.tpl
will be this line of code

Code: Select all

<link href="catalog/view/theme/default/stylesheet/stylesheet.css" rel="stylesheet">
And if the theme is titled something different, like "midnight" then in this file

Code: Select all

/catalog/view/theme/midnight/template/common/header.tpl
should be this line of code

Code: Select all

<link href="catalog/view/theme/midnight/stylesheet/stylesheet.css" rel="stylesheet">
?

Is this correct?

This would solve the problem with "default" being the only working theme name, but it still doesn't solve the problem why I changed the blue color to a red color and after clearing all browser cookies, closing all browser windows and after restarting my computer, all the blue colors are still blue and nothing is red, because I was using the theme titled "default" for this to make sure it wasn't a theme name problem.

Active Member

Posts

Joined
Wed Nov 26, 2014 1:29 pm

Post by Selective555 » Sat Dec 20, 2014 6:26 pm

The colors finally changed red for me.

For some odd unknown reason, they have to be done together, and I missed a few the first time.

StRaNgE

Active Member

Posts

Joined
Wed Nov 26, 2014 1:29 pm

Post by Selective555 » Sat Dec 20, 2014 7:54 pm

If you go to any page other than the front page, all links will show a blue outline when being hovered.

I just went through all of the color codes on that stylesheet.css and could not find what was causing it. I'll try looking again later if no one else finds it before I do.

Active Member

Posts

Joined
Wed Nov 26, 2014 1:29 pm

Post by opencarthow.com » Sat Dec 20, 2014 11:04 pm

Selective555 wrote:If you go to any page other than the front page, all links will show a blue outline when being hovered.

I just went through all of the color codes on that stylesheet.css and could not find what was causing it. I'll try looking again later if no one else finds it before I do.
You can try to add the below code at the end of the stylesheet.css file:

Code: Select all

a:hover {
text-decoration: none;
}

Our free extensions:
Advanced Layout System, Display Raw Product Description in Product List, Minimum Order Amount Requirement, Add to Wish List Redirect for Anonymous Customer


User avatar
Active Member

Posts

Joined
Fri Nov 28, 2014 10:41 am


Post by yodapt » Sun Dec 21, 2014 2:04 am

Hitting CTRL + F5 usually clears browser cache, works for me on Chrome.

Opencart Developer - My Extension Showcase
Contact me at aeon.yoda@gmail.com


User avatar
Active Member

Posts

Joined
Fri Jun 17, 2011 6:39 pm


Post by Selective555 » Sun Dec 21, 2014 6:38 am

opencarthow.com wrote:
Selective555 wrote:If you go to any page other than the front page, all links will show a blue outline when being hovered.

I just went through all of the color codes on that stylesheet.css and could not find what was causing it. I'll try looking again later if no one else finds it before I do.
You can try to add the below code at the end of the stylesheet.css file:

Code: Select all

a:hover {
text-decoration: none;
}
That didn't work, but you were very close and had the right idea. It has to have the color added for it to work. So blue must have been the default for the code to be missing.

Code: Select all

a:hover {
   text-decoration: none;
	color: #CC0000;
}
NOTE: the code "none" won't work, because when there is no code, blue is the default for no code and the blue will appear!

I added CC0000 for bright red, so I could see if it worked.

However..... Buttons such as the "Continue", "Login" and "Submit" buttons, still highlight blue when hovered. :(

What code can I add to fix the "Continue", "Login" and "Submit" buttons?
Last edited by Selective555 on Sun Dec 21, 2014 6:59 am, edited 2 times in total.

Active Member

Posts

Joined
Wed Nov 26, 2014 1:29 pm

Post by Selective555 » Sun Dec 21, 2014 6:42 am

yodapt wrote:Hitting CTRL + F5 usually clears browser cache, works for me on Chrome.
Thanks, this works great! :)

Active Member

Posts

Joined
Wed Nov 26, 2014 1:29 pm

Post by Selective555 » Fri Dec 26, 2014 5:00 am

I figured out finally how to get rid of the blue highlight around the buttons. Just make sure to add these border script lines to these sections in the stylesheet.css

Code: Select all

.btn-default {
	border-color: #555555 #555555 #555555 #555555;
}
.btn-default:hover {
        border-color: #555555 #555555 #555555 #555555;
}
You can add whatever colors you want to the borders, but without them or if marked as none, then the blue will show up!

The reason I had such a hard time figuring this one out, was because the hover script for the btn-default didn't exist in the stylesheet.css so I had to create it. I'm a little slow at learning how all this works, especially when things are missing or left out.

Active Member

Posts

Joined
Wed Nov 26, 2014 1:29 pm

Post by fdarn » Fri Dec 26, 2014 3:49 pm

Selective555 wrote:Alright.... I know I did that right, but the bar is still Blue, and the colors I changed them to never showed.

Oddly, other colors I change do show a change right away, like the background color. So... there is a problem with the way the css script is being read or held in memory.

I declare this a WTF program error. Can anyone fix it?

The Blues are not changing, even after I cleared all browser cookies and closed all browser windows! WTF

Are trying to change the color of your submit and add to cart buttons and the 5 star rating images? I think that is what you are saying. Those are all graphics. You have to upload your own graphic to overwrite those.

That is how I did it with my buttons See www.holstershack.com

Can I see your site please? if I am correct on my assumption of what you are trying to do I will explain exactly how to change the buttons. I did not need to change my review stars but I am sure it is done the same way.

Fred

New member

Posts

Joined
Mon Oct 14, 2013 8:40 pm
Who is online

Users browsing this forum: Amazon [Bot] and 61 guests