This is a discussion on Need help changing one box header within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; Thanks for being interested in this question; Yet before you say, " change the infoBoxHeading style in the style sheet ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| Thanks for being interested in this question; Yet before you say, "change the infoBoxHeading style in the style sheet"; I only want to change the backgrounds (and maybe text) headings of the specials box and the shopping cart (both on the right side). I've tried changing infoboxheading in the modules/default_specials.php; however that doesn't seem to work. I can change all the headings via changing the infoBoxHeading style no problem. I think I have looked everywhere, but obviously not. Thanks for any help |
| Sponsored Links | ||
| ||
|
#2
| ||||
| ||||
| If i am not wrong, someone else wanted to do the same. I am not into CSS. So I don't remember the exact answer. Search at forums.oscommerce.com
__________________ Regards, developer X Web Developer [color=blue]HTTPPoint Web Talk - Discuss about Web Design, Web Hosting, Programming & Web Development |
|
#3
| ||||
| ||||
| Just add a new style to the stylesheet and have the box use the new style.
__________________ Michael Sasek osCMax Developer
|
|
#4
| |||
| |||
| |
|
#5
| |||
| |||
| Thanks, All the above suggestions SHOULD work, but for some reason, I just could not get it to work. So, I used the fast and crude method and got right to the source. I created another style in the stylesheet for what I wanted then simply changed the box template, box.tpl.php , in the following manner: The code : <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr > <td height="14" class="infoBoxHeading"><img src="images/infobox/<?php switch ($corner_left) { case 'square': echo 'corner_right_left.gif'; break; case 'rounded': echo 'corner_left.gif'; break;} ?>" border="0" alt="" width="11" height="14"></td> <td width="100%" height="14" class="infoBoxHeading"><?php echo $boxHeading; ?></td> <td height="14" class="infoBoxHeading" nowrap><?php echo $boxLink; ?><img src="images/<?php switch ($corner_right) { case 'square': echo 'pixel_trans.gif'; break; case 'rounded': echo 'infobox/corner_right.gif'; break;} ?>" border="0" alt="" width="11" height="14"></td> </tr> </table> To: <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr > <td height="14" class="infoBoxHeading<?php if ( $boxHeading == 'Specials') {echo 'right';} if ( $boxHeading == 'Shopping Cart') {echo 'right';}?>"><img src="images/infobox/<?php switch ($corner_left) { case 'square': echo 'corner_right_left.gif'; break; case 'rounded': echo 'corner_left.gif'; break;} ?>" border="0" alt="" width="11" height="14"></td> <td width="100%" height="14" class="infoBoxHeading<?php if ( $boxHeading == 'Specials') {echo 'right';} if ( $boxHeading == 'Shopping Cart') {echo 'right';}?>"><?php echo $boxHeading; ?></td> <td height="14" class="infoBoxHeading<?php if ( $boxHeading == 'Specials') {echo 'right';} if ( $boxHeading == 'Shopping Cart') {echo 'right';}?>" nowrap><?php echo $boxLink; ?><img src="images/<?php switch ($corner_right) { case 'square': echo 'pixel_trans.gif'; break; case 'rounded': echo 'infobox/corner_right.gif'; break;} ?>" border="0" alt="" width="11" height="14"></td> </tr> </table> Thus directly changing the header box depending on the header title ($boxHeading). I will redo this in a more elegant fashion a bit later, but I am in a rush and that's the simplest, most basic way to accomplish this. I must say again, the other solutions, should work, but didn't work for me. Thanks again for the solutions. |
| Sponsored Links | ||
| ||
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Changing Header / navigation to match current site | Dialady | osCommerce 2.2 Modification Help | 3 | 12-13-2005 09:37 PM |
| Changing Background Color of Header | knowgangs | osCMax v1.7 Discussion | 2 | 07-12-2005 12:32 PM |
| Need help changing header | dave01978 | osCMax v1.7 Discussion | 2 | 12-14-2004 02:03 PM |
| Changing header and footer completely | mikeyboy | osCommerce 2.2 Modification Help | 3 | 10-09-2004 07:14 PM |
| Help needed changing link color in info box header | 13Moons | osCommerce 2.2 Modification Help | 1 | 03-04-2004 02:12 AM |