anybody know how to add the date to a site. is it a matter of just turning something on in admin? preferably by the main logo. thank you
anybody know how to add the date to a site. is it a matter of just turning something on in admin? preferably by the main logo. thank you
For placing it in the navMain bar this additional code can be added to your template copy of tpl_header.php - the li line can be added to other places if this is not what you are seeking. And I think there is a bit of css for the #firstbar tag.
Code:<!--bof-navigation display--> <div id="navMainWrapper"> <div id="navMain"> <ul class="back"> <li class="firstbar"><?php echo date("D M d Y");?></li> <li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li>
Zen-Venom Get Bitten
<!--bof-navigation display-->
<div id="navMainWrapper">
<div id="navMain">
<ul class="back">
<li class="firstbar"><?php echo date("D M d Y");?></li>
<li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?>
<?php echo HEADER_TITLE_CATALOG; ?></a></li>
Works like a charm!!!
Only if the NavMain font color is white (ffffff) this doesn't show up- make sure to adjust the color in css.
Thanks!
T
thanks for reply. when i placed it there it dropped my menu bar down into my logo, so i placed it on line 48, just a wild guess putting it there but it moved it to the left of the menu bar which works fine. two questions.1. will i screw things up placing lines wild like that? 2. i couldnt find "firstbar" in the css to play with text color. am i supposed to code it in myself, if so, how? thanks again.
ok, so i see the date color is adjusted with the body font color. is there a way to seperate the two?
Add above to your current template's stylesheet.Code:.firstbar{ color:#FF0000; font-size: 1.0em; font-weight: bold; }
Alter red code to suit your requirements.
![]()
perfect. thank you misty.