Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / How to format, change font colors in Site Map

How to format, change font colors in Site Map

Locked

Views: 2,816

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
8 Dec 2007, 5:00 PM
#1
jacka avatar

jacka

Zen Follower

Join Date:
Nov 2007
Location:
Dallas, Texas USA
Posts:
180
Plugin Contributions:
0

How to format, change font colors in Site Map

Site map link colors, text formatting and font colors don't seem to work for me in the css. Can anyone point me to something I'm doing wrong? Here's the section of my css attempts (pretty new at this):

#siteMapList ul li {
color:#333;
text-align: left;
}

#siteMapList ul li a:link {color:#333;}
#siteMapList ul li a:visited {color:#333;}
#siteMapList ul li a:hover {color:#666;}
#siteMapList ul li a:active {color:#333;}

http://www.artbeautiful.com/index.php?main_page=site_map&zenid=1pd4ggffprfo85439ve003d3b0

8 Dec 2007, 5:38 PM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: How to format, change font colors in Site Map

Your CSS works fine when I paste it into Edit CSS in Firefox. Are you sure you are editing the right stylesheet?

8 Dec 2007, 5:50 PM
#3
jacka avatar

jacka

Zen Follower

Join Date:
Nov 2007
Location:
Dallas, Texas USA
Posts:
180
Plugin Contributions:
0

Re: How to format, change font colors in Site Map

oops. I had #sitemap instead of #siteMapList. Entered correctly in the post and incorrectly in the css.
Sorry. Thanks.

I have another question that perhaps I should enter in another post so others can benefit from the answer?

I need to put an explanation statement such as "Note: etc." that appears on every page that displays product. How/where would be the best place ways to do that?

Jack

8 Dec 2007, 8:00 PM
#4
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: How to format, change font colors in Site Map

That needs more detail to answer correctly. Do you mean just individual product info pages, or listing pages as well?

9 Dec 2007, 8:16 AM
#5
jacka avatar

jacka

Zen Follower

Join Date:
Nov 2007
Location:
Dallas, Texas USA
Posts:
180
Plugin Contributions:
0

Re: How to format, change font colors in Site Map

Both. I want to display a message at the top of the pages that show multiple or the list of products that says these posters and prints are not framed, or something similar.

Also would like to display the same message on the individual product pages.

I hope I have clarified. Thanks.

9 Dec 2007, 3:53 PM
#6
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: How to format, change font colors in Site Map

The exact location to put the code will depend on where on the page you want the notice to appear, but you could do it like this:```php
if ($cPath != '' or $products_id != '') {
echo 'Your "Not Framed" message.';
}

This says that if there is a category path or a product id currently in use, display the message.

You may also want to include
```php
or $main_page == 'specials' or $main_page == 'products_new' or $main_page == 'featured_products' or $main_page == 'products_all' 
```as these have neither cPath or products_id.

You might put it in tpl_header.php, or in tpl_main_page.php.
10 Dec 2007, 6:20 AM
#7
jacka avatar

jacka

Zen Follower

Join Date:
Nov 2007
Location:
Dallas, Texas USA
Posts:
180
Plugin Contributions:
0

Re: How to format, change font colors in Site Map

I know little about PHP, so I will need to experiment with this, I guess. Is there no other way? Like with Define Pages?

10 Dec 2007, 6:28 AM
#8
jacka avatar

jacka

Zen Follower

Join Date:
Nov 2007
Location:
Dallas, Texas USA
Posts:
180
Plugin Contributions:
0

Re: How to format, change font colors in Site Map

I managed to fix most of it but there is this size issue with the category names in the ul that is too small and doesn't respond to any of the link declarations for the siteMapList settings in the css.

At this url, I am referring to :: Artist, for example. I've tried '!important' also with no change

The other isssue here on the site map is that slight changes in the em size of the font produces a huge comparative difference. For example, applying 1.5 em instead of 1.2em doubles the size displayed in the li.

url: http://www.artbeautiful.com/index.php?main_page=site_map&zenid=ja66in96536p45vpmbqkr1u0n5

10 Dec 2007, 5:21 PM
#9
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: How to format, change font colors in Site Map

The font-size needs to be applied to the <a> elements in the list:

div#siteMapList ul li a {
	font-size: 1.5em;
	font-weight: normal;
	color:#333;
	text-align: left;
}

And since each <a> has no descendants, you don't get the cumulative font-size issue that you get with <li> elements.