If this is your first visit, check our documentation. To post, register or login.

change color of "Log yourself in"?

Locked

Started by arpeggio on 12 Jan 2007, 5:30 PM · Views: 2,569

Results 1 to 17 of 17
This thread is locked. New replies are disabled.
12 Jan 2007, 5:30 PM
#1
arpeggio avatar

arpeggio

Zen Follower

Join Date:
Dec 2006
Location:
Tokyo, Melbourne, Shanghai
Posts:
102
Plugin Contributions:
0

Post #1 by arpeggio

Does anyone know how to change the color of "log yourself in" WITHOUT changing the color of the sidebox entries?? Oh if only i could.:frusty:
Someone please heeeeeeelp!! Thanks so much in advance.

13 Jan 2007, 3:16 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #2 by kobra

Add this and others to your stylesheet.css file

.greeting a:link {
color: #006633;
}

Others = visited , hover, active - if you want these changed also

Zen-Venom Get Bitten

13 Jan 2007, 12:54 PM
#3
arpeggio avatar

arpeggio

Zen Follower

Join Date:
Dec 2006
Location:
Tokyo, Melbourne, Shanghai
Posts:
102
Plugin Contributions:
0

Post #3 by arpeggio

Dear Kobra, Thank you for this prompt reply.
Unfortunately for some reason it didn't change anything.

This is what i have: Please see screeenshot of the css file and the result on my mainpage.

i put the top ".greeting" in last night and it changes the color of "Would you like to" part.
Is the "a:link" part of your reccomedation meant for the "log yourself in" part? I wonder why the "log yourself in" part doesn't change to white?
I tried both parts seperately too but...:(

at the moment the "log yourself in" part can only be changed by changing the navEZPagesTOC font color. I'm using Ver1.3.7.

Thank you, totemo kansha shimasu (very much appreciated) and i hope to hear from you again soon. best regards. Arpeggio.

13 Jan 2007, 4:59 PM
#4
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Post #4 by kuroi

The change recommended by Kobra that you have put into your stylesheet should have worked. That it didn't and that completely unrelated piece of CSS can have an effect suggests a wider problem with your stylesheet that cannot be assessed from a screenshot. Do you have a link to the offending site?

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

14 Jan 2007, 11:43 AM
#5
arpeggio avatar

arpeggio

Zen Follower

Join Date:
Dec 2006
Location:
Tokyo, Melbourne, Shanghai
Posts:
102
Plugin Contributions:
0

Post #5 by arpeggio

Thank you for your reply Kuroi san. I'm workin' off my localhost and have not 'www" site as yet. I have attached my CSS. The lines in contention here are from Line 39 to Line 50. Any advice you could offer will help. Thanks very much in advance.

14 Jan 2007, 3:12 PM
#6
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Post #6 by kuroi

You're in luck. Normally I refuse to look at CSS out of context of the site in which it is used, as it only really makes sense there and my tools for examining it make sense there. But since you were so polite, I kicked open the file and had a quick look anyway and found a small syntactic error.

Here's the CSS at which I'm looking> /*.greeting {

  • color: #000000; /* make your change here */
  • font-weight: bold;
  • font-size: 14px;
  • padding-top: 5px;
  • padding-bottom: 5px;
    }*/

.greeting a:link {
color: #ffffff;
}A CSS comment starts with a /* and ends with the next */. Unfortunately you have nested your comments, which means that your comment above ends much earlier than you think - I've highlighted the beginning and end in red - leaving a trail of stuff that will confuse browsers.

As browsers largely ignore whitespace and also ignore styles with errors, the styling for your .greeting a:link is most likely being treated as part of the stuff above that they can't interpret and so ignore. Not until they reach the } at the end of that style, can they breath a sigh of relief and start afresh.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

15 Jan 2007, 7:16 AM
#7
arpeggio avatar

arpeggio

Zen Follower

Join Date:
Dec 2006
Location:
Tokyo, Melbourne, Shanghai
Posts:
102
Plugin Contributions:
0

Post #7 by arpeggio

arigato kuroi san. totemo kansha shite imasu.(very much appreciated)

Unfotunately both removing the edit out marks and even deleting the first part, namely:

/*.greeting {

  • color: #000000;
  • font-weight: bold;
  • font-size: 14px;
  • padding-top: 5px;
  • padding-bottom: 5px;
    }*/

the color still does not change to white, in accordance with:

.greeting a:link {
color: #ffffff;
}

(I even put this last part at the very end of the CSS to make sure that it was the very last command possible to change the "log yourself in"s color!!

it is very strange. Is there a program I can use to "see" if the program is actually reading that line? (i think it is reeading now however because there are no edit out marks left).
Alternatively could you suggest some other things I may look at. For example what files are read before and after the CSS sheet for this "log yourself in" to finally display. Maybe I can trace the variable along its path or something.
Alternatively 2, is it not possible that you substitute my CSS in a copy of ZenCart 1.3.7 and see how it performs? (sorry for the inconvenience and that i dont have a www site up and running yet. As you've probably guessed this is my first attempt at a website!)

Thank you and I'll keep searchin'!! yoroshiku onegaishimasu.(thank you up to now and asking for your help in the future). Arpeggio.

15 Jan 2007, 7:43 AM
#8
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #8 by kobra

view your source and towards the top you will see the path to the style sheet being used. Make sure that the css that you are altering is this one. similar to:

<link rel="stylesheet" type="text/css" href="includes/templates/your_ttemplate/css/stylesheet.css"

The code posted is the correct code to effect the change you want

Zen-Venom Get Bitten

15 Jan 2007, 10:00 AM
#9
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Post #9 by kuroi

Kobra is on the right path here. Your stylesheet cleaned up in accordance with his and my observations does exactly what you're asking it to do. You can see it here.

Clearly you also have some issues with your site's structure. We could and probably would have spotted these immediately if we could see your site live. Instead we're spending a lot of time groping around in the dark trying to guess at what might be wrong. Please upload your site to somewhere public and we will be able to help you much more easily.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

16 Jan 2007, 5:05 PM
#10
arpeggio avatar

arpeggio

Zen Follower

Join Date:
Dec 2006
Location:
Tokyo, Melbourne, Shanghai
Posts:
102
Plugin Contributions:
0

Post #10 by arpeggio

Thank you so much to both of you Kobra and Kuroi san.

yes, its awfully strange:

  1. The source code (attached) clearly shows that it is accessing the correct stylesheet. (my_template = jeweltemplate).
  2. Kuroi's link clearly shows that the code:

.greeting a:link {
color: #ffffff;
}

infact works as expected.

So yes, clearly there's a spanner in my works here. Oh man what did i do?!!:cry: sorry guys. I dunno if there's anything you can see by looking at the rest of the source but other than that I'm not real sure about how I can publicly post my site soon. I havent even researched any server company yet and pretty much know nothing about it. Gotta hit the sack right now (early start tomo), so i'll read what zencart suggests about getting a public server when i'm back tomo. if you can suggest anything regarding what in the "structure" i could look for or anything at all else, please do. if not i'll hafta wait. koko made honto ni arigato gozaimashita. (thank you so much up to now.) arpeggio.

18 Jan 2007, 1:08 PM
#11
arpeggio avatar

arpeggio

Zen Follower

Join Date:
Dec 2006
Location:
Tokyo, Melbourne, Shanghai
Posts:
102
Plugin Contributions:
0

Post #11 by arpeggio

:oops:

Thought I'ld better call this one in!! hazkashii desu kedo (Embarressing as it is!!) My "Log yourself in" color does actually change with the above code. The change is only visible if I have just opened the admin and click "Online Catalog" for the first time. If I click "Log yourself in" the color changes to the "visited" color and will never return to the original color unless I completely close the admin., restart it and click "Online Catalog".

I suppose it makes sense but I was just refreshing my screen :( or when my session expired just relog in but that didnt bring the original color back either. I guess it pays to take a break! Sorry for the stupid mistake guys. (I learnt heaps along the way though. xiexie nimen (thks to both of you.) :bangin:

18 Jan 2007, 1:18 PM
#12
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Post #12 by kuroi

Sincen you 'fessed up, here's some more info. What you're seeing is an Internet Explorer behavior. You may wish to over-ride this by adding the additional styling in red below> .greeting a:link, .greeting a:visited {

color: #ffffff;
}どういたしまして

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

18 Jan 2007, 4:41 PM
#13
arpeggio avatar

arpeggio

Zen Follower

Join Date:
Dec 2006
Location:
Tokyo, Melbourne, Shanghai
Posts:
102
Plugin Contributions:
0

Post #13 by arpeggio

ハハ!面白いなあ!
I added the IE Tip. xie xie ni & have a great afternoon.

It's goodnight from Shanghai!

18 Jan 2007, 5:22 PM
#14
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #14 by kobra

arpeggio.

Maybe I should have highlited the sub=script to my earlier post?

Myself:

.greeting a:link {
color: #006633;
}

Others = visited , hover, active - if you want these changed also
Glad you sorted this out

Zen-Venom Get Bitten

19 Jan 2007, 8:24 AM
#15
arpeggio avatar

arpeggio

Zen Follower

Join Date:
Dec 2006
Location:
Tokyo, Melbourne, Shanghai
Posts:
102
Plugin Contributions:
0

Post #15 by arpeggio

Yes, right you are! a bit of a hurried conclusion, sorry 'bout that for next of kin, but the insight i gained from all this has provided me with, I think enough to write a small tutorial on how even a computer "nong" like me, can methodically and basically change the color of any word using 3 simple simple steps:

  1. the code you provided me here and
  2. the source code of the page which contains the text that one would like to modify.
  3. enter the code in the css.

(I'm going crazy with delight here changing the colors of many things now using this simple 3 step method which yourself and Kuroi san inspired.) arigato gozaimasu.:lol:

Do you think it's better if i send it to you guys for review prior to posting it? (sometime next week i imagine)

19 Jan 2007, 8:31 AM
#16
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Post #16 by kuroi

I look forward to seeing the site one day, and would be happy to review your tutorial for you once it's ready.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

20 Jan 2007, 5:25 AM
#17
arpeggio avatar

arpeggio

Zen Follower

Join Date:
Dec 2006
Location:
Tokyo, Melbourne, Shanghai
Posts:
102
Plugin Contributions:
0

Post #17 by arpeggio

subarashii! (great!) arigato. I'll be back.