Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Apr 2010
    Posts
    13
    Plugin Contributions
    0

    help question Change Link Colour

    I know this has been posted a million times before but I still can't find an answer...

    How do you change the colour in the links? At the moment, my categories on the right are green, and all other links are blue then change to red when scrolled over.

    I have searched many of my files, and have used Developer Tools in Google Chrome, still no luck.

    Thanks a lot in advance.

  2. #2
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

    Default Re: Change Link Colour

    Ru,
    Edit your stylesheet.css

    Find this:
    a.category-top, a.category-top:visited {
    color:#008000;
    text-decoration:none;}

    1. #00800; is the fix





  3. #3
    Join Date
    Apr 2010
    Posts
    13
    Plugin Contributions
    0

    Default Re: Change Link Colour

    Thank you, you have been a major help to me, just ask if you need me to do anything for you sometime. And concerning the last thread, I have removed the white section and I am reading about changing classic right now

  4. #4
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

    Default Re: Change Link Colour

    Ru,
    Awe, that is nice, and that is what Easter is For.. Giving....

    This will help you also...

    1. Download and install FireFox (if you don't have it already)
    2. Install Firebug (an add on for FireFox)
    3. Go to your site in FireFox, under Tools, start Firebug and Viola!
    you can play with your css to your hearts content. In Firebug, you can select your css, then select the element you want to change, and edit. Changes will be shown in real time without actually modifing the css, so you can see if your changes give you the desired effect. Once satisfied, go to your real stylesheet and comit the changes.

    Even I can do a little bit of this, so that means most anyone can as well.

    You can find FireFox and Firebug here. www.mozilla.com/firefox

    Good Luck

    https://addons.mozilla.org/en-US/firefox/addon/1843
    Use the FIREBUG and DEVELOPER TOOLKIT add-ons to Firefox browser to help you find relevant style classes and ID's within the template.

    You can also perform off-line edits to CSS using these tools, allowing you to see what changes will apply when you edit CSS components.

  5. #5
    Join Date
    Apr 2010
    Posts
    13
    Plugin Contributions
    0

    help question Re: Change Link Colour

    Hi, just downloaded it :)
    I just tried to remove the congratulations... bit from my main page, but I think I, by accidental, removed something I wasn't meant to from index.php. My page won't load now. Do you know what's wrong with the code below?




    <?php
    /**
    * @package languageDefines
    * @copyright Copyright 2003-2006 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * @version $Id: index.php 6550 2007-07-05 03:54:54Z drbyte $
    */

    define('TEXT_MAIN','This is the main define statement for the page for english when no template defined file exists. It is located in: <strong>/includes/languages/english/index.php</strong>');

    // Showcase vs Store
    if (STORE_STATUS == '0') {
    define('TEXT_GREETING_GUEST', 'Welcome <span class="greetUser">Guest!</span> Would you like to <a href="%s">log yourself in</a>?');
    } else {
    define('TEXT_GREETING_GUEST', 'Welcome, please enjoy our online showcase.');
    }

    define('TEXT_GREETING_PERSONAL', 'Hello <span class="greetUser">%s</span>! Would you like to see our <a href="%s">newest additions</a>?');

    define('TEXT_INFORMATION', 'Define your main Index page copy here.');

    //moved to english
    //define('TABLE_HEADING_FEATURED_PRODUCTS','Featured Products');

    //define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');
    //define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products');
    //define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected');

    if ( ($category_depth == 'products') || (zen_check_url_get_terms()) ) {
    // This section deals with product-listing page contents
    define('HEADING_TITLE', 'Available Products');
    define('TABLE_HEADING_IMAGE', 'Product Image');
    define('TABLE_HEADING_MODEL', 'Model');
    define('TABLE_HEADING_PRODUCTS', 'Product Name');
    define('TABLE_HEADING_MANUFACTURER', 'Manufacturer');
    define('TABLE_HEADING_QUANTITY', 'Quantity');
    define('TABLE_HEADING_PRICE', 'Price');
    define('TABLE_HEADING_WEIGHT', 'Weight');
    define('TABLE_HEADING_BUY_NOW', 'Buy Now');
    define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.');
    define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.');
    define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: ');
    define('TEXT_SHOW', 'Filter Results by:');
    define('TEXT_BUY', 'Buy 1 \'');
    define('TEXT_NOW', '\' now');
    define('TEXT_ALL_CATEGORIES', 'All Categories');
    define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers');
    } elseif ($category_depth == 'top') {
    // This section deals with the "home" page at the top level with no options/products selected
    /*Replace this text with the headline you would like for your shop. For example: 'Welcome to My SHOP!'*/
    define('HEADING_TITLE', );
    } elseif ($category_depth == 'nested') {Congratulations! You have successfully installed your Zen Cart™ E-Commerce Solution.}
    // This section deals with displaying a subcategory
    /*Replace this line with the headline you would like for your shop. For example: 'Welcome to My SHOP!'*/
    define('HEADING_TITLE', 'Congratulations! You have successfully installed your Zen Cart&trade; E-Commerce Solution.');

    ?>






    Thanks again

  6. #6
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

    Default Re: Change Link Colour

    Ru,
    Use your FTP program and upload a original .php file you just hacked...

    Remember to leave the single quotes with the wording your are trying to remove..
    'Congratulations! You have successfully installed your Zen Cart&trade; E-Commerce Solution.'
    Right way: remove the wording and leave the single quotes
    ''

  7. #7
    Join Date
    Apr 2010
    Posts
    13
    Plugin Contributions
    0

    help question Re: Change Link Colour

    Hi, I removed the quote marks, but I don't have an original of the php, it was created when I installed Zen Cart earlier today. I am currently talking to Just Host about restoring the original file, but thank you for the suggestion.

  8. #8
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

    Default Re: Change Link Colour

    Rus,
    Just edit the file and place them back in..

  9. #9
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

    Default Re: Change Link Colour

    Ru,
    Here it is just copy and paste, then upload

    PHP Code:
    <?php
    /**
     * @package languageDefines
     * @copyright Copyright 2003-2006 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: index.php 6550 2007-07-05 03:54:54Z drbyte $
     */

    define('TEXT_MAIN','This is the main define statement for the page for english when no template defined file exists. It is located in: <strong>/includes/languages/english/index.php</strong>');

    // Showcase vs Store
    if (STORE_STATUS == '0') {
      
    define('TEXT_GREETING_GUEST''Welcome <span class="greetUser">Guest!</span> Would you like to <a href="%s">log yourself in</a>?');
    } else {
      
    define('TEXT_GREETING_GUEST''Welcome, please enjoy our online showcase.');
    }

    define('TEXT_GREETING_PERSONAL''Hello <span class="greetUser">%s</span>! Would you like to see our <a href="%s">newest additions</a>?');

    define('TEXT_INFORMATION''Define your main Index page copy here.');

    //moved to english
    //define('TABLE_HEADING_FEATURED_PRODUCTS','Featured Products');

    //define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');
    //define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products');
    //define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected');

    if ( ($category_depth == 'products') || (zen_check_url_get_terms()) ) {
      
    // This section deals with product-listing page contents
      
    define('HEADING_TITLE''Available Products');
      
    define('TABLE_HEADING_IMAGE''Product Image');
      
    define('TABLE_HEADING_MODEL''Model');
      
    define('TABLE_HEADING_PRODUCTS''Product Name');
      
    define('TABLE_HEADING_MANUFACTURER''Manufacturer');
      
    define('TABLE_HEADING_QUANTITY''Quantity');
      
    define('TABLE_HEADING_PRICE''Price');
      
    define('TABLE_HEADING_WEIGHT''Weight');
      
    define('TABLE_HEADING_BUY_NOW''Buy Now');
      
    define('TEXT_NO_PRODUCTS''There are no products to list in this category.');
      
    define('TEXT_NO_PRODUCTS2''There is no product available from this manufacturer.');
      
    define('TEXT_NUMBER_OF_PRODUCTS''Number of Products: ');
      
    define('TEXT_SHOW''Filter Results by:');
      
    define('TEXT_BUY''Buy 1 \'');
      
    define('TEXT_NOW''\' now');
      
    define('TEXT_ALL_CATEGORIES''All Categories');
      
    define('TEXT_ALL_MANUFACTURERS''All Manufacturers');
    } elseif (
    $category_depth == 'top') {
      
    // This section deals with the "home" page at the top level with no options/products selected
      /*Replace this text with the headline you would like for your shop. For example: 'Welcome to My SHOP!'*/
      
    define('HEADING_TITLE''Congratulations! You have successfully installed your Zen Cart&trade; E-Commerce Solution.');
    } elseif (
    $category_depth == 'nested') {
      
    // This section deals with displaying a subcategory
      /*Replace this line with the headline you would like for your shop. For example: 'Welcome to My SHOP!'*/
      
    define('HEADING_TITLE''Congratulations! You have successfully installed your Zen Cart&trade; E-Commerce Solution.'); 
    }
    ?>

  10. #10
    Join Date
    Apr 2010
    Posts
    13
    Plugin Contributions
    0

    Default Re: Change Link Colour

    Yet again, THANK YOU SO MUCH!
    Happy Easter

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v151 Category list box contents - change link bg colour
    By Annie_zaz in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 6 Feb 2014, 11:54 PM
  2. Shopping cart sidebox link change colour
    By wotnow in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 13 Oct 2011, 02:51 AM
  3. Change colour link at bottom
    By Opal in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 17 Sep 2008, 11:22 PM
  4. Change the link colour of selected category...
    By Alex Clarke in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 12 Jul 2007, 08:09 AM

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