Cambiare colore testo categorie
Moderatore: mod Generali
-
- membro Veteran
- Messaggi: 520
- Iscritto il: 24/06/2008, 19:45
Cambiare colore testo categorie
Dal file .css quale campo delimita il colore delle categorie?
Per gli altri li ho trovati tutti....tranne che per categorie
Per gli altri li ho trovati tutti....tranne che per categorie
-
- membro Veteran
- Messaggi: 520
- Iscritto il: 24/06/2008, 19:45
Re: Cambiare colore testo categorie
vai sulla pagina dal browser e scegli di mostrare l'html. A quel punto troverai le classi applicate ai vari tag.3dstudiomax ha scritto:Dal file .css quale campo delimita il colore delle categorie?
Per gli altri li ho trovati tutti....tranne che per categorie
La funzione CERCA si trova sotto al logo Oscommerce italia in questa pagina. - I Love Marketing!
I miei preferiti: internet marketing blog - biancheria da letto - prodotti tipici piemonte - vini piemontesi - roero arneis
I miei preferiti: internet marketing blog - biancheria da letto - prodotti tipici piemonte - vini piemontesi - roero arneis
-
- membro Veteran
- Messaggi: 520
- Iscritto il: 24/06/2008, 19:45
l'ho anche fatto, ma non lo trovo
Come puoi vedere trovo solamente class="tx2" che è riferito alla categorie e non alle sottocategorie
Codice: Seleziona tutto
<tr><td height="30"></td></tr>
<tr><td height="15" class="tx2">Categorie</td></tr>
<tr><td><img src="images/m12.gif" border="0" alt="" width="154" height="1"></td></tr>
<tr><td height="14"></td></tr>
<tr><td><ul>
<li><a href=http://sito/Shop/index.php?cPath=10>prova</a></li><li><a href=http://sito/Shop/index.php?cPath=1>Praesent vestibulum</a></li><li><a href=http://sito/Shop/index.php?cPath=2>Molestie lacus aenean</a></li><li><a href=http://sito/Shop/index.php?cPath=3>Nonummy hendrerit mauris</a></li><li><a href=http://sito/Shop/index.php?cPath=4>Phasellus porta</a></li><li><a href=http://sito/Shop/index.php?cPath=5>Fusce suscipit varius mi</a></li><li><a href=http://sito/Shop/index.php?cPath=6>Cum sociis natoque penat</a></li><li><a href=http://sito/Shop/index.php?cPath=7>Magnis dis parturient</a></li><li><a href=http://sito/Shop/index.php?cPath=8>Ridiculus mus. Nulla dui</a></li><li><a href=http://sito/Shop/index.php?cPath=9>Fusce feugiat malesuada</a></li> </ul>
</td></tr>
-
- membro Veteran
- Messaggi: 520
- Iscritto il: 24/06/2008, 19:45
Ragazzi questo è il mio file .css
Mi date una mano ?
Codice: Seleziona tutto
/*
$Id: stylesheet.css,v 1.56 2003/06/30 20:04:02 hpdl Exp $
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2003 osCommerce
Released under the GNU General Public License
*/
.boxText { font-family: Verdana, Arial, sans-serif; font-size: 10px; }
.errorBox { font-family : Verdana, Arial, sans-serif; font-size : 10px; background: #ffb3b5; font-weight: bold; }
.stockWarning { font-family : Verdana, Arial, sans-serif; font-size : 10px; color: #cc0033; }
.productsNotifications { background: #f2fff7; }
.orderEdit { font-family : Verdana, Arial, sans-serif; font-size : 10px; color: #000; text-decoration: underline; }
FORM {
display: inline;
}
.infoBox {
background:(images/bg.gif) repeat;
}
.infoBoxContents {
background:(images/bg.gif) repeat;
font-family: Verdana, Arial, sans-serif;
font-size: 10px;
}
TR.headerNavigation {
background: #bbc3d3;
}
TD.headerNavigation {
font-family: Verdana, Arial, sans-serif;
font-size: 10px;
background: #bbc3d3;
color: #ffffff;
font-weight : bold;
}
A.headerNavigation {
color: #FFFFFF;
}
A.headerNavigation:hover {
color: #ffffff;
}
TR.headerError {
background: #ff0000;
}
TD.headerError {
font-family: Tahoma, Verdana, Arial, sans-serif;
font-size: 12px;
background: #ff0000;
color: #ffffff;
font-weight : bold;
text-align : center;
}
TR.headerInfo {
background: #00ff00;
}
TD.headerInfo {
font-family: Tahoma, Verdana, Arial, sans-serif;
font-size: 12px;
background: #00ff00;
color: #ffffff;
font-weight: bold;
text-align: center;
}
.infoBoxNotice {
background: #FF8E90;
}
.infoBoxNoticeContents {
background: #FFE6E6;
font-family: Verdana, Arial, sans-serif;
font-size: 10px;
}
TD.infoBoxHeading {
font-family: Verdana, Arial, sans-serif;
font-size: 10px;
font-weight: bold;
background: #bbbbd3;
color: #ffff66;
}
TD.infoBox, SPAN.infoBox {
font-family: Verdana, Arial, sans-serif;
font-size: 10px;
}
TR.accountHistory-odd, TR.addressBook-odd, TR.alsoPurchased-odd, TR.payment-odd, TR.productListing-odd, TR.productReviews-odd, TR.upcomingProducts-odd, TR.shippingOptions-odd {
background: #f8f8f9;
}
TR.accountHistory-even, TR.addressBook-even, TR.alsoPurchased-even, TR.payment-even, TR.productListing-even, TR.productReviews-even, TR.upcomingProducts-even, TR.shippingOptions-even {
background: #f8f8f9;
}
TABLE.productListing {
border: 1px;
border-style: solid;
border-color: #b6b7cb;
border-spacing: 1px;
}
.productListing-heading {
font-family: Verdana, Arial, sans-serif;
font-size: 10px;
background: #b6b7cb;
color: #FFFFFF;
font-weight: bold;
}
TD.productListing-data {
font-family: Verdana, Arial, sans-serif;
font-size: 10px;
}
A.pageResults {
color: #0000FF;
}
A.pageResults:hover {
color: #0000FF;
background: #FFFF33;
}
TD.pageHeading, DIV.pageHeading {
font-family: Verdana, Arial, sans-serif;
font-size: 20px;
font-weight: bold;
color: #9a9a9a;
}
TR.subBar {
background: #f4f7fd;
}
TD.subBar {
font-family: Verdana, Arial, sans-serif;
font-size: 10px;
color: #000000;
}
TD.main, P.main {
font-family: Verdana, Arial, sans-serif;
font-size: 11px;
line-height: 1.5;
}
TD.smallText, SPAN.smallText, P.smallText {
font-family: Verdana, Arial, sans-serif;
font-size: 10px;
}
TD.accountCategory {
font-family: Verdana, Arial, sans-serif;
font-size: 13px;
color: #aabbdd;
}
TD.fieldKey {
font-family: Verdana, Arial, sans-serif;
font-size: 12px;
font-weight: bold;
}
TD.fieldValue {
font-family: Verdana, Arial, sans-serif;
font-size: 12px;
}
TD.tableHeading {
font-family: Verdana, Arial, sans-serif;
font-size: 12px;
font-weight: bold;
}
SPAN.newItemInCart {
font-family: Verdana, Arial, sans-serif;
font-size: 10px;
color: #ff0000;
}
CHECKBOX, INPUT, RADIO, SELECT {
font-family: Verdana, Arial, sans-serif;
font-size: 11px;
}
TEXTAREA {
width: 100%;
font-family: Verdana, Arial, sans-serif;
font-size: 11px;
}
SPAN.greetUser {
font-family: Verdana, Arial, sans-serif;
font-size: 12px;
color: #ffffff;
font-weight: bold;
}
TABLE.formArea {
background: #f1f9fe;
border-color: #7b9ebd;
border-style: solid;
border-width: 1px;
}
TD.formAreaTitle {
font-family: Tahoma, Verdana, Arial, sans-serif;
font-size: 12px;
font-weight: bold;
}
SPAN.markProductOutOfStock {
font-family: Tahoma, Verdana, Arial, sans-serif;
font-size: 12px;
color: #c76170;
font-weight: bold;
}
SPAN.productSpecialPrice {
font-family: Verdana, Arial, sans-serif;
color: #ff0000;
}
SPAN.errorText {
font-family: Verdana, Arial, sans-serif;
color: #ff0000;
}
.moduleRow { }
.moduleRowOver { background-color: #D7E9F7; cursor: pointer; cursor: hand; }
.moduleRowSelected { background-color: #E9F4FC; }
.checkoutBarFrom, .checkoutBarTo { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #8c8c8c; }
.checkoutBarCurrent { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #000000; }
/* message box */
.messageBox { font-family: Verdana, Arial, sans-serif; font-size: 10px; }
.messageStackError, .messageStackWarning { font-family: Verdana, Arial, sans-serif; font-size: 10px; background-color: #ffb3b5; }
.messageStackSuccess { font-family: Verdana, Arial, sans-serif; font-size: 10px; background-color: #99ff00; }
/* input requirement */
#manu * {background:none;border:none;}
#manu select {background-color:#fff;border:1px solid #4a4a4a;}
.inputRequirement { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #ff0000; }
.smallText_1 a {
color:#000;
text-decoration:underline;
}
.smallText_1 a:hover {
color:#000;
text-decoration:none;
}
#myse select {
width:90%;
}
body {padding:0; margin:0; background:url(images/bg.gif); }
body, td {font-family:Tahoma,verdana,arial; font-size:11px; color:#676767;}
.bg {background:url(images/m13.gif); background-repeat:repeat-y;}
.bg1 {background:url(images/m14.gif); background-repeat:repeat-x;}
ul{
margin:0px;
padding:0px;
list-style:none;
}
ul li{
margin:0px;
padding:0;
}
ul a{
color:#676767;
text-decoration:none;
font-size:11px;
line-height:20px;
}
ul a:hover{
color:#446517;
}
.al li{
margin:0px;
padding:0;
}
.al li a{
color:#676767;
text-decoration:none;
font-size:11px;
line-height:12px;
}
.al li a:hover{
color:#3D6E0A;
}
.se {width:143px; height:18px; font-family:tahoma,verdana,arial; font-size:11px; color:#5F5F5F; padding-left:3px;}
.se1 {width:147px; height:17px; font-family:tahoma,verdana,arial; font-size:10px; color:#3A2701; padding-left:3px; background-color:#E9E9E9;}
.go {width:30px; height:14px; font-family:tahoma,verdana,arial; font-size:11px; color:#636363; padding-left:3px; border: 1px solid #989797; line-height:12px;}
html>body .go {width:30px; height:16px; font-family:tahoma,verdana,arial; font-size:11px; color:#636363; padding-left:3px; border: 1px solid #989797; line-height:12px;}
.ab {vertical-align: middle;}
.tx {font-size:11px; color:#626262; font-weight:bold;}
.tx1 {font-size:11px; color:#8E8E8E;}
.tx2 {font-size:11px; color:#676767; font-weight:bold; text-transform:uppercase;}
.tx3 {font-size:11px; color:#3D6E0A; font-weight:bold; text-transform:uppercase;}
.tx3 a {font-size:11px; color:#3D6E0A; font-weight:bold; text-transform:uppercase;text-decoration:none;}
.tx4 {font-size:11px; color:#676767; font-weight:bold;}
.tx5 {font-size:12px; color:#4F8418; font-weight:bold;}
.tx6 {font-size:11px; color:#4A4A4A; font-weight:bold;}
.tx7 {font-size:11px; color:#1788C4; font-weight:bold; text-transform:uppercase;}
.tx8 {font-size:12px; color:#6B6B6B; font-weight:bold;}
.ml {color:#FFFFFF; font-size:11px; text-decoration:none;}
.ml:hover { text-decoration:underline;}
.ml1 {color:#3D6E0A; font-size:11px; text-decoration:none; font-weight:bold;}
.ml1:hover {text-decoration:underline;}
.ml2 {color:#676767; font-size:11px; text-decoration:none;}
.ml2:hover { text-decoration:underline;}
.ml3 {color:#676767; font-size:11px; text-decoration:underline;}
.ml3:hover { text-decoration:none; font-weight:bold;}
#zxc1 {color:#000000; font-size:10px;}
#zxc1 a {color:#000000; font-size:10px; text-decoration:none;}
#zxc1 a:hover {text-decoration:underline;}
.delp {
color:#808080;
font-size:11px;
font-weight:normal;
}
.main a {
color:#000;
text-decoration:none;
}
.main a:hover {
color:#000;
text-decoration:underline;
}
.subcatl {
color:#000;
text-decoration:underline;
font-weight:normal;
}
.subcatl:hover {
color:#000;
text-decoration:none;
font-weight:normal;
}
Mi date una mano ?
-
- membro Veteran
- Messaggi: 520
- Iscritto il: 24/06/2008, 19:45
Forse mi sa che ho dimenticato di allegare la cosa più importante ^_^
Secondo me la cosa più logica è applicare la classe css qui:
Modificandola così:
Ma purtroppo non funziona
Secondo voi dove andrebbe messa ?
Codice: Seleziona tutto
<?php
/*
$Id: categories.php,v 1.25 2003/07/09 01:13:58 hpdl Exp $
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2003 osCommerce
Released under the GNU General Public License
*/
function tep_show_category($counter) {
global $tree, $categories_string, $cPath_array;
for ($i=0; $i<$tree[$counter]['level']; $i++) {
$categories_string .= " ";
}
$categories_string .= '<a href="';
if ($tree[$counter]['parent'] == 0) {
$cPath_new = 'cPath=' . $counter;
} else {
$cPath_new = 'cPath=' . $tree[$counter]['path'];
}
$categories_string .= tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">';
if (isset($cPath_array) && in_array($counter, $cPath_array)) {
$categories_string .= '<b>';
}
// display category name
$categories_string .= $tree[$counter]['name'];
if (isset($cPath_array) && in_array($counter, $cPath_array)) {
$categories_string .= '</b>';
}
if (tep_has_category_subcategories($counter)) {
$categories_string .= '->';
}
$categories_string .= '</a>';
if (SHOW_COUNTS == 'true') {
$products_in_category = tep_count_products_in_category($counter);
if ($products_in_category > 0) {
$categories_string .= ' (' . $products_in_category . ')';
}
}
$categories_string .= '<br>';
if ($tree[$counter]['next_id'] != false) {
tep_show_category($tree[$counter]['next_id']);
}
}
?>
<!-- categories //-->
<tr>
<td>
<?php
$info_box_contents = array();
$info_box_contents[] = array('text' => BOX_HEADING_CATEGORIES);
new infoBoxHeading($info_box_contents, true, false);
$categories_string = '';
$tree = array();
$categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '0' and c.categories_id = cd.categories_id and cd.language_id='" . (int)$languages_id ."' order by sort_order, cd.categories_name");
while ($categories = tep_db_fetch_array($categories_query)) {
$tree[$categories['categories_id']] = array('name' => $categories['categories_name'],
'parent' => $categories['parent_id'],
'level' => 0,
'path' => $categories['categories_id'],
'next_id' => false);
if (isset($parent_id)) {
$tree[$parent_id]['next_id'] = $categories['categories_id'];
}
$parent_id = $categories['categories_id'];
if (!isset($first_element)) {
$first_element = $categories['categories_id'];
}
}
//------------------------
if (tep_not_null($cPath)) {
$new_path = '';
reset($cPath_array);
while (list($key, $value) = each($cPath_array)) {
unset($parent_id);
unset($first_id);
$categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$value . "' and c.categories_id = cd.categories_id and cd.language_id='" . (int)$languages_id ."' order by sort_order, cd.categories_name");
if (tep_db_num_rows($categories_query)) {
$new_path .= $value;
while ($row = tep_db_fetch_array($categories_query)) {
$tree[$row['categories_id']] = array('name' => $row['categories_name'],
'parent' => $row['parent_id'],
'level' => $key+1,
'path' => $new_path . '_' . $row['categories_id'],
'next_id' => false);
if (isset($parent_id)) {
$tree[$parent_id]['next_id'] = $row['categories_id'];
}
$parent_id = $row['categories_id'];
if (!isset($first_id)) {
$first_id = $row['categories_id'];
}
$last_id = $row['categories_id'];
}
$tree[$last_id]['next_id'] = $tree[$value]['next_id'];
$tree[$value]['next_id'] = $first_id;
$new_path .= '_';
} else {
break;
}
}
}
tep_show_category($first_element);
$info_box_contents = array();
$info_box_contents[] = array('text' => $categories_string);
new infoBox($info_box_contents);
?>
</td>
</tr>
<!-- categories_eof //-->
Codice: Seleziona tutto
$categories_string .= '<a href="';
Codice: Seleziona tutto
$categories_string .= '<a class="tx" href="';
Ma purtroppo non funziona
Secondo voi dove andrebbe messa ?
-
- membro Veteran
- Messaggi: 520
- Iscritto il: 24/06/2008, 19:45