Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / Nothing in forums on how to change colour, font and size of sales message goes here

Nothing in forums on how to change colour, font and size of sales message goes here

Locked
This thread is locked. New replies are disabled.
17 Apr 2009, 11:23 AM
#1
sushigal avatar

sushigal

Zen Follower

Join Date:
Mar 2009
Posts:
435
Plugin Contributions:
0

Post #1 by sushigal

Hi there, I know how to remove 'sales message goes here' but I've heard not having it isn't a good idea for search engines so I've come to the conclusion I need to have it, I know how I can make it read what ever I want but no where in the forums can I see how to change it's colour or font or font size (without affecting text in other parts of the site) as I am perfectly happy to have the sales message if I can edit it so it fits in with my background header image design and colour scheme.

So can I do this without having to change the font throughout the whole of or most of the website? Which leads me to my second question...
I am aware that editing the font in the following code in stylesheet.css affects the text on most of the website including the sales message so this solves changing the font size and font of it but this also changes the font on the rest of the site. If I edit anything in the following bit of code;

      body {
margin: 0;
font-family: arial, helvetica, sans-serif;
font-size: 75%;
color: #000000;
background-color: #e5edf5; 

It changes the font else where which I don't want. So is there a way of changing the font of different parts of the site individually? and a way of changing the font colour of the sales message?

I think I'm rambling now, sorry! Just getting a bit frustrated. Help, please! :wacko:

17 Apr 2009, 11:32 AM
#2
kuroi avatar

kuroi

Totally Zenned

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

Post #2 by kuroi

Example:> #tagline h1 {

color: pink;
font-size: .5em;
}

Kuroi Web Design and Development | Twitter

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

17 Apr 2009, 12:10 PM
#3
sushigal avatar

sushigal

Zen Follower

Join Date:
Mar 2009
Posts:
435
Plugin Contributions:
0

Post #3 by sushigal

Hi thanks for the reply, but when I change for example h1 {
font-size: 1.5em;
color: navy;

it also changes the colour and size of the category title, that appears when you click on a category in the left hand box how do i solve this?

Many thanks

17 Apr 2009, 12:17 PM
#4
kuroi avatar

kuroi

Totally Zenned

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

Post #4 by kuroi

You have missed out a key part of the example> #tagline h1 {

color: pink;
font-size: .5em;
}

Kuroi Web Design and Development | Twitter

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

17 Apr 2009, 1:16 PM
#5
sushigal avatar

sushigal

Zen Follower

Join Date:
Mar 2009
Posts:
435
Plugin Contributions:
0

Post #5 by sushigal

Hi, what is the '#tagline' all about? I can't see this in style.css Im getting a bit confused, can someone simply explain step by step without too much jargon where possible how to chamge the font size style and colour of individual things on zen eg edit colour and size of sales message goes here without this change also changing the appearance of the title of categories

17 Apr 2009, 1:27 PM
#6
kuroi avatar

kuroi

Totally Zenned

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

Post #6 by kuroi

Zen Cart uses CSS just like any other modern website, so what you're actually asking for is a beginner's guide to CSS. I'd recommend starting at w3schools where they have published some excellent tutorials already.

In respect of the example I gave you, if you make the changes for h1, then it will apply to all the other h1 tags on your site. You need to make your styling more specific to apply it to a particular part of the site, that's what the missing #tagline ID would have done. You can learn about tags, IDs and classes by working at the w3schools link.

Also, there will be things you want to style that are not mentioned in your stylesheet. If it tried to cover everything, it be enormous and slow your site down (it would also miss the point of CSS, but that's a more complex issue), so if what you want isn't there. you just add it.

Kuroi Web Design and Development | Twitter

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

17 Apr 2009, 1:58 PM
#7
sushigal avatar

sushigal

Zen Follower

Join Date:
Mar 2009
Posts:
435
Plugin Contributions:
0

Post #7 by sushigal

Ok, thank you I think I'm starting to understand how this works, and will have to learn css!

But in the mean time, is it possible to explain to me what to add into the stylesheet.css so that the sales message text can be a different font, colour and size to any other text? What exactly do I need to do in lamens terms please?

17 Apr 2009, 2:03 PM
#8
sushigal avatar

sushigal

Zen Follower

Join Date:
Mar 2009
Posts:
435
Plugin Contributions:
0

Post #8 by sushigal

P.s Am I correct in thinking the sales message and category title are both have h1 tags? If so, how will I know this and how can I change it so that only one of them has a h1 and the other has something else if you understand me, so only the sales message is affected by h1 and the category title is affected by a different h, h8???? I have no idea this but hopefully you understand what I mean and that I am starting to understand your reply. If so please guide me in the right direction that I can make happen what im describing above! :) thank you.

17 Apr 2009, 3:08 PM
#9
kuroi avatar

kuroi

Totally Zenned

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

Post #9 by kuroi

I do understand. As I haven't seen your site and therefore don't know what template you're using, I don't know what they are, though from the explanations that you've given to date, it sounds as though they are both h1 tags. You can find this out for sure by looking at the source code for the generated pages. More advanced users use the Firebug plug-in for Firefox to get at this information more quickly.

To target one h1 but not another, you need to increase the "specificity" of your selector. You will learn about these terms in the link I gave your earlier. A practical example of this is the "#tagline" in the example above, which makes clear that the styles are to be applied only to the content of h1 tags inside a "container" with the ID "tagline".

Update: Now seen your site referenced in another thread, and yes those titles are both h1 tags and can be referenced separately as "#tagline h1", and "#indexCategoriesHeading h1".

Kuroi Web Design and Development | Twitter

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

19 Apr 2009, 1:02 PM
#10
kursula avatar

kursula

New Zenner

Join Date:
Apr 2009
Posts:
1
Plugin Contributions:
0

Post #10 by kursula

verion4.4.9 (Zend: 1.3.0) I am looking for the files to change the sales message goes here can I can not find it. I check for english/language.php Does anyone know where or the name of the files to change the sales message and also The file to change 'Your cart has been completely installed sucessfully.

Kursula

19 Apr 2009, 1:12 PM
#11
kuroi avatar

kuroi

Totally Zenned

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

Post #11 by kuroi

kursula:

verion4.4.9 (Zend: 1.3.0) I am looking for the files to change the sales message goes here can I can not find it. I check for english/language.php Does anyone know where or the name of the files to change the sales message and also The file to change 'Your cart has been completely installed sucessfully.

KursulaI suggest that you read the "What Every New Zen Cart User Needs to Know" section of the FAQ. You'll find your questions answered in entries 5 and 6.

Kuroi Web Design and Development | Twitter

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

19 Apr 2009, 1:14 PM
#12
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Post #12 by tony_sar

kursula:

verion4.4.9 (Zend: 1.3.0) I am looking for the files to change the sales message goes here can I can not find it. I check for english/language.php Does anyone know where or the name of the files to change the sales message and also The file to change 'Your cart has been completely installed sucessfully.

Kursula

Sales message ....

includes/languages/english/classic/header.php
if you have not done template override , i suggest to look that tutorial on how to do it .. before modifying any file.

for Congratulation! ....
includes/languages/english/index.php

there are many cool thing that zencart developers have provided for us. and one is Developer Tool kits , under Tool menu in your admin . that allows you to search for almost anything in your zencart files.
there is a tutorial on how to use this tool as well. i don't think most of us could do without that tool .:P

20 Apr 2009, 9:10 AM
#13
sushigal avatar

sushigal

Zen Follower

Join Date:
Mar 2009
Posts:
435
Plugin Contributions:
0

Post #13 by sushigal

kuroi:

Update: Now seen your site referenced in another thread, and yes those titles are both h1 tags and can be referenced separately as "#tagline h1", and "#indexCategoriesHeading h1".

How do I do this? reference those titles seperately? Please help! :)

20 Apr 2009, 9:27 AM
#14
sushigal avatar

sushigal

Zen Follower

Join Date:
Mar 2009
Posts:
435
Plugin Contributions:
0

Post #14 by sushigal

It's ok think I've cracked it?! I inserted the following into stylesheet.css;

h1 {
font-size: 1em;
color: navy;
}

#tagline h1 {
font-size: 2em;
color: red;
}

and now I can change the 'sales message goes here' to any font and colour I want, without the change affecting the cateogry title. However I can't edit the category title now, any changes I make to

'h1 {
font-size: 1em;
color: navy;
}'

have no affect on the category title appearance. Do I need to change this to indexCategoriesHeading h1 or add this in somewhere?

20 Apr 2009, 9:27 AM
#15
kuroi avatar

kuroi

Totally Zenned

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

Post #15 by kuroi

You follow the example given in post #2 and again in #4 exactly as written.

Kuroi Web Design and Development | Twitter

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

20 Apr 2009, 9:30 AM
#16
sushigal avatar

sushigal

Zen Follower

Join Date:
Mar 2009
Posts:
435
Plugin Contributions:
0

Post #16 by sushigal

IGNORE ME!! :smile: All is well, it does change when I edit it. All is sorted, I can now edit the 'sales message goes here' and category title seperately, I will now be able to apply this knowledge to other things! Thanks so much for all the help. I am now going to do some serious reading up on css so I have a better understanding.

Thanks again guys! :clap:

20 Apr 2009, 9:46 AM
#17
kuroi avatar

kuroi

Totally Zenned

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

Post #17 by kuroi

Our last posts crossed, and clearly you were already well on the way to a solution. Well done. :cheers:

Kuroi Web Design and Development | Twitter

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

20 Apr 2009, 10:31 AM
#18
sushigal avatar

sushigal

Zen Follower

Join Date:
Mar 2009
Posts:
435
Plugin Contributions:
0

Post #18 by sushigal

Thanks for all your help Kuroi. I'd be pretty lost without this forum! But hopefully one day in the not so distance future, I can also help people in the forum! :smile:

20 Apr 2009, 10:35 AM
#19
kuroi avatar

kuroi

Totally Zenned

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

Post #19 by kuroi

You're welcome. We all start as new users. The difference is that some give up easily, others persist and flourish. You're showing strong signs of being firmly in the second group.

Kuroi Web Design and Development | Twitter

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

20 Apr 2009, 10:54 AM
#20
sushigal avatar

sushigal

Zen Follower

Join Date:
Mar 2009
Posts:
435
Plugin Contributions:
0

Post #20 by sushigal

Well that's a complimentary thing to say, thank you! :smile: