TD.headerNavigation NOT CHANGING
#1
Posted 09 February 2012, 21:03
TD.headerNavigation {
font-family: Verdana, Arial, sans-serif;
font-size: 10px;
background: #bbc3d3;
color: #ffffff;
font-weight : bold;
height: 50px;
}
and to hit ctrl and refresh...BUT nothing is changing. Here is my header.php code. I havnt changed it but I cant see reference to TD.headerNavigation:
<?php
/*
$Id$
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright © 2010 osCommerce
Released under the GNU General Public License
*/
if ($messageStack->size('header') > 0) {
echo '<div class="grid_24">' . $messageStack->output('header') . '</div>';
}
?>
<div id="header" class="grid_24">
<div id="storeLogo"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'store_logo.png', STORE_NAME) . '</a>'; ?></div>
<div id="headerShortcuts">
<?php
echo tep_draw_button(HEADER_TITLE_CART_CONTENTS . ($cart->count_contents() > 0 ? ' (' . $cart->count_contents() . ')' : ''), 'cart', tep_href_link(FILENAME_SHOPPING_CART)) .
tep_draw_button(HEADER_TITLE_CHECKOUT, 'triangle-1-e', tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL')) .
tep_draw_button(HEADER_TITLE_MY_ACCOUNT, 'person', tep_href_link(FILENAME_ACCOUNT, '', 'SSL'));
if (tep_session_is_registered('customer_id')) {
echo tep_draw_button(HEADER_TITLE_LOGOFF, null, tep_href_link(FILENAME_LOGOFF, '', 'SSL'));
}
?>
</div>
<script type="text/javascript">
$("#headerShortcuts").buttonset();
</script>
</div>
<div class="grid_24 ui-widget infoBoxContainer">
<div class="ui-widget-header infoBoxHeading"><?php echo ' ' . $breadcrumb->trail(' » '); ?></div>
</div>
<?php
if (isset($HTTP_GET_VARS['error_message']) && tep_not_null($HTTP_GET_VARS['error_message'])) {
?>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr class="headerError">
<td class="headerError"><?php echo htmlspecialchars(stripslashes(urldecode($HTTP_GET_VARS['error_message']))); ?></td>
</tr>
</table>
<?php
}
if (isset($HTTP_GET_VARS['info_message']) && tep_not_null($HTTP_GET_VARS['info_message'])) {
?>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr class="headerInfo">
<td class="headerInfo"><?php echo htmlspecialchars(stripslashes(urldecode($HTTP_GET_VARS['info_message']))); ?></td>
</tr>
</table>
<?php
}
?>
Can anyone suggest why this isnt changing?
Thanks
#2
Posted 10 February 2012, 13:01
#3
Posted 10 February 2012, 15:12
I am not a coder. OSC has a steep learning curve, but in general the program does work. If it doesnt work, the chances are it is something you have done.
#4
Posted 10 February 2012, 16:01
.ui-widget-header { border: 1px solid #4297d7; background: #5c9ccc url(images/ui-bg_gloss-wave_55_5c9ccc_500x100.png) 50% 50% repeat-x; color: #ffffff; font-weight: bold;}
and messed about with the .infoBoxHeading class also but changing either of these changes all the headings not the navigation bar. U'd think the nav would be its own div!
#5
Posted 10 February 2012, 16:08
#6
Posted 10 February 2012, 16:18
Top>>Catalog
I am building a shop for a friend who sales supplements. I wanted to have like a horizontal navigation bar.
#7
Posted 12 February 2012, 00:11
Gotcha, I call that the breadcrumb trail. :0
Either way,
The code for it is located in catalog/includes/header.php
Find
<div class="grid_24 ui-widget infoBoxContainer">
<div class="ui-widget-header infoBoxHeading"><?php echo ' ' . $breadcrumb->trail(' » '); ?></div>
</div>
This is a ui-widget that gets it styling from the UI Theme
Hope that helps
#8
Posted 12 February 2012, 13:35
If you change the css for the classes that the navbar already uses, then it will also apply to any OTHER elements that use those same classes. So, unless you want the changes to apply site wide, then add a new class.
#9
Posted 12 February 2012, 13:50
dpuk44, on 10 February 2012, 16:18, said:
Top>>Catalog
I am building a shop for a friend who sales supplements. I wanted to have like a horizontal navigation bar.
I am trying to do this exact thing, I have googled and found many many forums, posts, articles that said you need to edit the stylesheet.css in here..
TR.header {
background: #ffffff;
}
TR.headerNavigation {
background: #bbc3d3;
}
TD.headerNavigation {
font-family: Verdana, Arial, sans-serif;
font-size: 10px;
background: #bbc3d3;
color: #ffffff;
font-weight : bold;
}
Now I can add a line for height, I can change font size, but any modification to the colour codes seems to have no effect??? The answers I have seen in this thread might work, or be fine, might be a work-around.. but does not answer the basic question as to why modification of this part of the css file yelds no results.
James
#10
Posted 12 February 2012, 14:57
James Schofield, on 12 February 2012, 13:50, said:
TR.header {
background: #ffffff;
}
TR.headerNavigation {
background: #bbc3d3;
}
TD.headerNavigation {
font-family: Verdana, Arial, sans-serif;
font-size: 10px;
background: #bbc3d3;
color: #ffffff;
font-weight : bold;
}
Now I can add a line for height, I can change font size, but any modification to the colour codes seems to have no effect??? The answers I have seen in this thread might work, or be fine, might be a work-around.. but does not answer the basic question as to why modification of this part of the css file yelds no results.
James
Are the posta you are reading refering to 2.3.1. This version id different.If you want to change just the navbar, you will have to add a new css class for that section.
I am not a coder. OSC has a steep learning curve, but in general the program does work. If it doesnt work, the chances are it is something you have done.
#11
Posted 12 February 2012, 15:56
14steve14, on 12 February 2012, 14:57, said:
Yes I am refering to 2.3.1 - I have read nothing in the documentation about requiring a new class, and why am I am to make other changes which do take effect.. yet for a colour change I need to make a new class?
I am not savy enough in css to know where I make this new class - am I changing stylesheet.css or another file? if so how do I add this?
James
#12
Posted 12 February 2012, 17:25
I am not a coder. OSC has a steep learning curve, but in general the program does work. If it doesnt work, the chances are it is something you have done.
#13
Posted 13 February 2012, 08:29
Add somewhere into file calalog/stylesheet.css
#header+div .ui-widget-header{background:none;background:#f00;}
This will work for a default headar file. No need to edit any other file, no need to edit the core ui css file, no need to add new classes and changes will apply only to the breadcrumb
You can alter also any other styling that is added by class ui-widget-header, such as border etc
Edited by multimixer, 13 February 2012, 08:43.
#15
Posted 15 February 2012, 14:13
#16
Posted 15 February 2012, 16:31
#columnLeft+div .infoBoxHeading {
background: red;
}
#17
Posted 15 February 2012, 17:04
#columnLeft div.ui-widget-header{background:none;background:#f00}
You can check here about some other stuff to do with your boxes, it's not about the heading color, but easy to figure out the logic
I would also recommend to take a look to here to get an overview about css selectors
#18
Posted 15 February 2012, 17:05














