programguru Posted January 15, 2005 Share Posted January 15, 2005 I have a good 8 hours in this attempt to change the product title color in the New Products for "month" on my index page. If I update the stylesheet it will work but will change global colors. I tried inline css in many many many places to no avail. I can't even locate that specific table although Ive found a TON of them already. I must be missing some info. Can anyone fill in the blanks? Ive delt with index.php & products_new.php Can anyone give me some guidance? Thanks in adavance, J :) Link to comment Share on other sites More sharing options...
Guest Posted January 15, 2005 Share Posted January 15, 2005 Open catalog/includes/modules/new_products.php Change $info_box_contents = array(); $info_box_contents[] = array('text' => sprintf(TABLE_HEADING_NEW_PRODUCTS, strftime('%B'))); to $info_box_contents = array(); $info_box_contents[] = array('text' => sprintf(TABLE_HEADING_NEW_PRODUCTS, '<font color="#FF0000">' . strftime('%B') . '</font>')); You can also use CSS instead of <font> to achieve the same result. Sorted. :thumbsup: Link to comment Share on other sites More sharing options...
programguru Posted January 15, 2005 Author Share Posted January 15, 2005 Now im getting somewhere. The instruct you gave allowed me to change the month color (in the header of the page box), currently January. This is great to know, although it doesn't solve my problem. Heres a demo of what Im trying to change: ------------------------------------------------- | New Products for January | |-----------------------------------------------| | Product Image | | Product Title (this is the title im trying to chg | Product Price | | | ------------------------------------------------- If you have any other info I would be abliged. Thanks most! J Link to comment Share on other sites More sharing options...
Guest Posted January 15, 2005 Share Posted January 15, 2005 The line you need is here 'text' => '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $new_products['products_image'], $new_products['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '">' . $new_products['products_name'] . '</a><br>' . $currencies->display_price($new_products['products_price'], tep_get_tax_rate($new_products['products_tax_class_id']))); You can rearrange the order and change many other things. (See the highlight for Product's name) Link to comment Share on other sites More sharing options...
programguru Posted January 15, 2005 Author Share Posted January 15, 2005 Thanks Alpha, and its all working now: '<font color="black">' . $new_products['products_name'] . '</font>' Your a master! :D Link to comment Share on other sites More sharing options...
Guest Posted January 15, 2005 Share Posted January 15, 2005 Anytime, JR! :thumbsup: Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.