Forums / Templates, Stylesheets, Page Layout / I can change "Congratulations, but It's still BOLD

I can change "Congratulations, but It's still BOLD

Locked

Started by chrisj on 8 Sep 2006, 9:14 PM · Views: 3,659

Results 1 to 20 of 26
This thread is locked. New replies are disabled.
8 Sep 2006, 9:14 PM
#1
chrisj avatar

chrisj

Zen Follower

Join Date:
Aug 2006
Posts:
104
Plugin Contributions:
0

I can change "Congratulations, but It's still BOLD

I've changed the text in index.php of "Congratulations, you've successfully...etc".

I even changed the font there. But no matter what font I change to, the font still seems to be bold.

Where/how can I change the "Congratulations, you've successfully...etc" text to non-bold?

Thanks....

8 Sep 2006, 10:14 PM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,725
Plugin Contributions:
0

Re: I can change "Congratulations, but It's still BOLD

<?php if (SHOW_CUSTOMER_GREETING == 1) { ?>
<h2 class="greeting"><?php echo zen_customer_greeting(); ?></h2>
<?php } ?>

You need to change the stylesheet class for the above.

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

8 Sep 2006, 10:29 PM
#3
chrisj avatar

chrisj

Zen Follower

Join Date:
Aug 2006
Posts:
104
Plugin Contributions:
0

Re: I can change "Congratulations, but It's still BOLD

thanks so much for your reply.

I searched the stylesheet.css for the code that you posted, but I couldn't find it.

So, can you please tell me where I can "change the stylesheet class for the above (code)"?

Thanks.

8 Sep 2006, 11:17 PM
#4
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

Re: I can change "Congratulations, but It's still BOLD

There are many places in ZC where a class is named but not defined in the stylesheet. There are good reasons for this...one of which is to encourage you to get your hands dirty!

When you are able to identify the class you need and find it doesn't exist in the stylesheet...create it!! :wink2:

Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
20 years with Zencart !

9 Sep 2006, 1:22 AM
#5
chrisj avatar

chrisj

Zen Follower

Join Date:
Aug 2006
Posts:
104
Plugin Contributions:
0

Re: I can change "Congratulations, but It's still BOLD

Thanks for your reply.

If I understand you, I should add that code to the stylesheet. Which I did, but it changed nothing.

I'm not versed in creating code, so I could use some more help here. Anyone?

Thanks again.. I look forward to further assistance, please.

9 Sep 2006, 1:33 AM
#6
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,725
Plugin Contributions:
0

Re: I can change "Congratulations, but It's still BOLD

Please post exactly what you added to the stylesheet.

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

9 Sep 2006, 1:36 AM
#7
chrisj avatar

chrisj

Zen Follower

Join Date:
Aug 2006
Posts:
104
Plugin Contributions:
0

Re: I can change "Congratulations, but It's still BOLD

I added the code form the first reply of this thread:

<?php if (SHOW_CUSTOMER_GREETING == 1) { ?> <h2 class="greeting"><?php echo zen_customer_greeting(); ?></h2> <?php } ?>
9 Sep 2006, 1:56 AM
#8
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,725
Plugin Contributions:
0

Re: I can change "Congratulations, but It's still BOLD

Which part did you add to your stylesheet?

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

9 Sep 2006, 2:14 AM
#9
chrisj avatar

chrisj

Zen Follower

Join Date:
Aug 2006
Posts:
104
Plugin Contributions:
0

Re: I can change "Congratulations, but It's still BOLD

Thanks for your reply.

I added all of it.

9 Sep 2006, 3:47 AM
#10
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,725
Plugin Contributions:
0

Re: I can change "Congratulations, but It's still BOLD

Don't you think it looks rather odd when compared to the other things in that file?

I posted the code from the template to illustrate where the CSS class is in the code. You need to add the class (greeting) to your stylesheet and then "style" it.

EXAMPLE:

.greeting {
font-weight: normal;
}

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

9 Sep 2006, 4:36 PM
#11
chrisj avatar

chrisj

Zen Follower

Join Date:
Aug 2006
Posts:
104
Plugin Contributions:
0

Re: I can change "Congratulations, but It's still BOLD

Thanks again for your reply.

To respond to your statement:
"Don't you think it looks rather odd when compared to the other things in that file? "

I didn't compare it. A lot of times when people ask how to do something in the Forum, other people reply with "add the following code...".

That's what I was hoping for.

Regarding your statement:
"I posted the code from the template to illustrate where the CSS class is in the code."

I apparently didn't get that you were illustrating where the class was in the code. I don't even know what "the class in the code" means.

You also stated:
"You need to add the class (greeting) to your stylesheet and then "style" it.

EXAMPLE:

.greeting {
font-weight: normal;
}

I appreciate your reply, but even with your example, I'm not sure what I need to do to get the answer I was orignally asking for which still is "Where/how can I change the "Congratulations, you've successfully...etc" text to non-bold?"

But, I'm very open to learning how to do it.

I don't know where to add

".greeting {
font-weight: normal;
}
"
Can someon tell me where to add that code in the stylesheet?

I'd greatly appreciate any further assistance. Thanks again so much for your time and efforts in helping me.

9 Sep 2006, 5:06 PM
#12
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,725
Plugin Contributions:
0

Re: I can change "Congratulations, but It's still BOLD

Perhaps this CSS tutorial will help. http://www.tizag.com/cssT/

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

9 Sep 2006, 5:56 PM
#13
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,846
Plugin Contributions:
0

Re: I can change "Congratulations, but It's still BOLD

.greeting = selector (class id)

font-weight: = property

normal; = value

font-weight: normal; = a declaration

so with that being said the following css rule:

.greeting {
font-weight: normal;
}
would set any text classed ".greeting" to normal. If you change normal to bold you would get bold lettering.

If you wanted the text to be, say blue, you would set the rule as follows:

.greeting {
font-weight: normal;
color: blue; this could also be a hex value (ie. #xxxxxx)
}

You would also place this in your style sheet at the bottom.

Mike
AEIIA - Zen Cart Certified & PCI Compliant Hosting
The Zen Cart Forum...Better than a monitor covered with post-it notes!

9 Sep 2006, 6:01 PM
#14
chrisj avatar

chrisj

Zen Follower

Join Date:
Aug 2006
Posts:
104
Plugin Contributions:
0

Re: I can change "Congratulations, but It's still BOLD

Thank you for your reply.

The tutorial looks great, however it first requires that i know more HTML than I currently do.

I was hoping someone could provide me with the code to change the "Congratulations, you've successfully...etc" text to non-bold,
rather than learn html and css, just to make that one change.

I am learning as I go, but I was looking simply for a way to change the text to non-bold, so i could finish my web site within a certain time frame.

Would anyone be interested, please, in giving me a simple line of code, and where to place it, to to change the "Congratulations, you've successfully...etc" text to non-bold.

Thank you. I look forward to that assistance.

9 Sep 2006, 6:03 PM
#15
chrisj avatar

chrisj

Zen Follower

Join Date:
Aug 2006
Posts:
104
Plugin Contributions:
0

Re: I can change "Congratulations, but It's still BOLD

Thanks barco 57, your reply didn't appear when I was replying to the previous message.

Thanks again.

9 Sep 2006, 6:18 PM
#16
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,846
Plugin Contributions:
0

Re: I can change "Congratulations, but It's still BOLD

no problem. We are here to help. It was only 4 months ago I found zencart, so I've done a lot of learnig in a short period of time. I have multiple version of my site loaded on my laptop for local development that way I can play with out breaking the live site. I also find that taking a break from working on the actual site and just coming here to read posts when I'm not in a panic to find something to save my butt helps. Seeing what kinds of problems others have had and how the community comes together to help solve it, will help you become familiar with the terminology used around here. Get firefox and use the web developer mod, go to other zen cart sites and use the web developer tools to see how others accomplished what they did. The light bulb will come on. Good luck and check back often.

Mike
AEIIA - Zen Cart Certified & PCI Compliant Hosting
The Zen Cart Forum...Better than a monitor covered with post-it notes!

11 Sep 2006, 1:22 PM
#17
chrisj avatar

chrisj

Zen Follower

Join Date:
Aug 2006
Posts:
104
Plugin Contributions:
0

Re: I can change "Congratulations, but It's still BOLD

I added this:

.greeting {
font-weight: normal;
color: blue; this could also be a hex value (ie. #xxxxxx)
}

to the bottom of templates/classicx/stylesheet.css

but saw no change in the Greeting message on the main index page.

What am I doing wrong?

Thanks again.

11 Sep 2006, 3:39 PM
#18
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,846
Plugin Contributions:
0

Re: I can change "Congratulations, but It's still BOLD

remove:

this could also be a hex value (ie. #xxxxxx)

That was mean't as information for you not to be included in the statment:cool:

I'll check back later I have to go load some cars now sorry

Mike
AEIIA - Zen Cart Certified & PCI Compliant Hosting
The Zen Cart Forum...Better than a monitor covered with post-it notes!

11 Sep 2006, 5:16 PM
#19
chrisj avatar

chrisj

Zen Follower

Join Date:
Aug 2006
Posts:
104
Plugin Contributions:
0

Re: I can change "Congratulations, but It's still BOLD

Simply added this:

.greeting {
font-weight: normal;

}

Tried normal & Bold. It changed nothing.

Are you sure this is all the code needed?

Thanks again.

12 Sep 2006, 11:16 PM
#20
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,846
Plugin Contributions:
0

Re: I can change "Congratulations, but It's still BOLD

ok the following will change "Welcome Guest! Would you like to log yourself in?" to normal.

h2.greeting {
font-weight: normal;}

And the following should change "Congratulations......etc" to normal:

h1#indexDefaultHeading {
font-weight: normal}

cross your fingers:cool:

Mike
AEIIA - Zen Cart Certified & PCI Compliant Hosting
The Zen Cart Forum...Better than a monitor covered with post-it notes!