acbatchelor Posted March 7, 2009 Posted March 7, 2009 I just want to change the color of the name of the products on the product listing pages. I don't want to change the color of all the links throughout the site.
Jack_mcs Posted March 7, 2009 Posted March 7, 2009 That code is in the includes/modules/product_listing.php file. You will need to find the line for the name (it's marked) and insert css code to change the color. Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
acbatchelor Posted March 7, 2009 Author Posted March 7, 2009 i figured that but i don't know how to put the code in correctly
germ Posted March 7, 2009 Posted March 7, 2009 case 'PRODUCT_LIST_NAME': $lc_align = ''; if (isset($HTTP_GET_VARS['manufacturers_id'])) { $lc_text = '<a [color="#FF0000"][b]class="new"[/b][/color] href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '">' . $listing['products_name'] . '</a>'; } else { $lc_text = ' <a [color="#FF0000"][b]class="new"[/b][/color] href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . $listing['products_name'] . '</a> '; } break; Sample stylesheet code: A.new { color: #ffffff; text-decoration: none; } A.new:hover { color: #000000; text-decoration: underline; } If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
acbatchelor Posted March 7, 2009 Author Posted March 7, 2009 thanks, i've been trying to do this for a while. i got close to figuring it out own my own but not quite.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.