beachboy Posted April 7, 2003 Share Posted April 7, 2003 My featured products box doesn't have a title in it's header unless you mouseover it then one shows..How do I fix this gltch ?? Link to comment Share on other sites More sharing options...
Ajeh Posted April 8, 2003 Share Posted April 8, 2003 The Feature Box is a link so is using the color of the A class in your stylesheet and put the new style inside the <a href> tag. ie <a class="my_new_style" href Make a new style for it. Link to comment Share on other sites More sharing options...
beachboy Posted April 8, 2003 Author Share Posted April 8, 2003 You completely lost me..Here is what my stylesheet has under A : A { color: #000000; text-decoration: none; } A:hover { color: #bbc3d3; text-decoration: underline; } You wrote <a class="my_new_style" href What would my new style be..I want a fixed white font at the center of the featured products titlebar.. Here is my url: http://www.beachboysdiscounttools.com/cata...log/default.php Link to comment Share on other sites More sharing options...
beachboy Posted April 8, 2003 Author Share Posted April 8, 2003 I just went to my stylesheet and changed the colors at: TD.infoBoxHeading and it changed all the box headers, not just the featured products box header.. Is there a code I can add to the stylesheet so it will just change the featured product box header?? If so what is it? Link to comment Share on other sites More sharing options...
Ajeh Posted April 8, 2003 Share Posted April 8, 2003 These two tags control the over all color of the links and the hover over the links: A { color: #000000; text-decoration: none; } A:hover { color: #bbc3d3; text-decoration: underline; } The color you want for the Features Box is probably opposite or different. You need to make two new tags: A.FeaturedProducts { color: #FFFFFF; text-decoration: none; } A.FeaturedProducts:hover { color: #FF0000; text-decoration: underline; } Inside the code for the featured products, you need to get inside the <a href> tag for the title and add: <a class="FeaturedProducts" href I have made the changes in the past but do not have the exact change handy at the moment. Link to comment Share on other sites More sharing options...
beachboy Posted April 8, 2003 Author Share Posted April 8, 2003 I understand everything except this part.. Inside the code for the featured products, you need to get inside the <a href> tag for the title and add: Code: <a class="FeaturedProducts" href Does that go in the new code you just made or somewhere else on the stylesheet? Where is the <a href> tag ? Link to comment Share on other sites More sharing options...
Ajeh Posted April 8, 2003 Share Posted April 8, 2003 You have some file that draws the box. The header of the box that that file draws has a link. This link, by default, is using the A and A:hover class in the stylesheet.css You need to 1 add the two new styles to the stylesheet.css then you need to edit the file that creates the box and change the code where the link is made for the Featured Products to use that new style. That has to be placed in side the links <a href> and not in the <TD> like you would normally do it. Otherwise, it will not "hear" the new style and use the old one. Link to comment Share on other sites More sharing options...
beachboy Posted April 8, 2003 Author Share Posted April 8, 2003 OK..I added the code to the stylesheet and it didn't change anything.. In featured_products.php this is the only reference I can find it calling for the stylesheet: <base href="<?php echo (getenv('HTTPS') == 'on' ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <link rel="stylesheet" type="text/css" href="<? echo THEMA_STYLE;?>"> </head> In view/source of the default page this is the code thats there but it's not in the default .php: <!-- featured_products //--> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td height="14" class="infoBoxHeading"><img src="images/infobox/thema/4/corner_left.gif" border="0" alt="" width="8" height="19"></td> <td height="14" class="infoBoxHeading" width="100%"><a href="http://www.beachboysdiscounttools.com/catalog/featured_products.php">Featured Products</a></td> <td height="14" class="infoBoxHeading"><img src="images/infobox/thema/4/corner_right_left.gif" border="0" alt="" width="15" height="19"></td> </tr> </table> Link to comment Share on other sites More sharing options...
beachboy Posted April 9, 2003 Author Share Posted April 9, 2003 Well, I managed to get the header to a white backround w/ black text..The problem is I had to edit my default.php as an html document. I did it in my php editor and saved it as a php file but it is still in html format and that's where the problem lies..I uploaded it and now when I go to my store and click on a product category it just refreshes to the default page..AARRGGHHH Link to comment Share on other sites More sharing options...
Ajeh Posted April 9, 2003 Share Posted April 9, 2003 You need to add the class where I indicated below. <td height="14" class="infoBoxHeading" width="100%"><a class="MyClassHere" href="http://www.beachboysdiscounttools.com/catalog/featured_products.php">Featured Products</a></td> Link to comment Share on other sites More sharing options...
beachboy Posted April 9, 2003 Author Share Posted April 9, 2003 Ok..I need to add that to my default.php somewhere, Not the html version of my default .php..That's the problem There is no reference to the featured products anywhere in the default.php.. Link to comment Share on other sites More sharing options...
Ajeh Posted April 9, 2003 Share Posted April 9, 2003 You have to play with the code in feature.php, or which ever file draws the box, a bit where the Text for the link is added to the box to get the class inside there when it is drawn. Link to comment Share on other sites More sharing options...
beachboy Posted April 9, 2003 Author Share Posted April 9, 2003 I've opened that file many times..I'll check it again..Please understand that until I got this program I never heard of php..I was able to do a little html for my aution ads so this is all mind boggling!! I really need to be walked through this stuff without having to guess or I get into a real mess..Thanks.. Link to comment Share on other sites More sharing options...
mgraphics Posted April 9, 2003 Share Posted April 9, 2003 Have you tried editing A.headerNavigation in the stylesheet? It's been a while since I've worked on the featured products, but I believe the link and header is made up in featured.php Look for if ( (!isset($featured_products_category_id)) || ($featured_products_category_id == '0') ) { $info_box_contents[] = array('align' => 'left', 'text' => '<a class="headerNavigation" href="' . tep_href_link(FILENAME_FEATURED_PRODUCTS) . '">' . TABLE_HEADING_FEATURED_PRODUCTS . '</a>'); Try changing the 'align' => 'left' to 'align' => 'center' and the A.headerNavigation in the stylesheet to white -Doug Link to comment Share on other sites More sharing options...
beachboy Posted April 9, 2003 Author Share Posted April 9, 2003 Thanks I'll try that before I give up and just change all the header colors and font colors on the page..Spent way too much time on this already.. Link to comment Share on other sites More sharing options...
OMalleys Posted December 29, 2003 Share Posted December 29, 2003 I know this thread has been dead for a while - but I just wanted to say it has just helped me solve a niggling problem - thanks Ajeh! David Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.