Forums / Basic Configuration / Change Link Colour

Change Link Colour

Locked

Views: 1,502

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
4 Apr 2010, 6:11 PM
#1
russ_94 avatar

russ_94

New Zenner

Join Date:
Apr 2010
Posts:
13
Plugin Contributions:
0

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.:smile:

4 Apr 2010, 6:16 PM
#2
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,187
Plugin Contributions:
0

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

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

4 Apr 2010, 6:21 PM
#3
russ_94 avatar

russ_94

New Zenner

Join Date:
Apr 2010
Posts:
13
Plugin Contributions:
0

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 :smile:

4 Apr 2010, 6:25 PM
#4
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,187
Plugin Contributions:
0

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. https://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.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

4 Apr 2010, 6:51 PM
#5
russ_94 avatar

russ_94

New Zenner

Join Date:
Apr 2010
Posts:
13
Plugin Contributions:
0

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™ E-Commerce Solution.'); ?>

Thanks again :smile:

4 Apr 2010, 6:55 PM
#6
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,187
Plugin Contributions:
0

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™ E-Commerce Solution.'Right way: remove the wording and leave the single quotes
''

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

4 Apr 2010, 7:04 PM
#7
russ_94 avatar

russ_94

New Zenner

Join Date:
Apr 2010
Posts:
13
Plugin Contributions:
0

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.

4 Apr 2010, 7:10 PM
#8
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,187
Plugin Contributions:
0

Re: Change Link Colour

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

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

4 Apr 2010, 7:13 PM
#9
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,187
Plugin Contributions:
0

Re: Change Link Colour

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

<?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™ 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™ E-Commerce Solution.'); 
}
?>

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

4 Apr 2010, 7:15 PM
#10
russ_94 avatar

russ_94

New Zenner

Join Date:
Apr 2010
Posts:
13
Plugin Contributions:
0

Re: Change Link Colour

:clap:Yet again, THANK YOU SO MUCH!
Happy Easter :laugh:

4 Apr 2010, 7:21 PM
#11
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,187
Plugin Contributions:
0

Re: Change Link Colour

Ru,
You are most welcome, glad you are up and running again...

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.