Results 1 to 9 of 9
  1. #1
    Join Date
    Nov 2007
    Location
    Dallas, Texas USA
    Posts
    183
    Plugin Contributions
    0

    Default 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.ph...85439ve003d3b0

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default 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?

  3. #3
    Join Date
    Nov 2007
    Location
    Dallas, Texas USA
    Posts
    183
    Plugin Contributions
    0

    Default 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

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default 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?

  5. #5
    Join Date
    Nov 2007
    Location
    Dallas, Texas USA
    Posts
    183
    Plugin Contributions
    0

    Default 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.

  6. #6
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default 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 Code:
    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 Code:
    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.
    Last edited by gjh42; 9 Dec 2007 at 04:58 PM.

  7. #7
    Join Date
    Nov 2007
    Location
    Dallas, Texas USA
    Posts
    183
    Plugin Contributions
    0

    Default 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?

  8. #8
    Join Date
    Nov 2007
    Location
    Dallas, Texas USA
    Posts
    183
    Plugin Contributions
    0

    Default 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.ph...45vpmbqkr1u0n5

  9. #9
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

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

    The font-size needs to be applied to the <a> elements in the list:
    Code:
    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.

 

 

Similar Threads

  1. How do I change colors in my template to match my site?
    By uniqueliving in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 9 Feb 2010, 11:35 AM
  2. Need to change font colors on my website
    By zymerguyer in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 18 Nov 2008, 03:11 PM
  3. Change font colour of the site map display
    By Manor in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 27 May 2008, 08:36 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg