Forums / Templates, Stylesheets, Page Layout / placing the Date on my site.

placing the Date on my site.

Locked

Started by lucasnlaura on 25 May 2008, 9:16 AM · Views: 1,059

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
25 May 2008, 9:16 AM
#1
lucasnlaura avatar

lucasnlaura

New Zenner

Join Date:
May 2008
Posts:
14
Plugin Contributions:
0

placing the Date on my site.

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

25 May 2008, 10:28 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: placing the Date on my site.

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.

<!--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

25 May 2008, 3:37 PM
#3
charmedbytina2 avatar

charmedbytina2

Totally Zenned

Join Date:
Mar 2007
Location:
AZ
Posts:
1,890
Plugin Contributions:
0

Re: placing the Date on my site.

<!--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 :frusty: - make sure to adjust the color in css.

Thanks!
T

25 May 2008, 4:32 PM
#4
lucasnlaura avatar

lucasnlaura

New Zenner

Join Date:
May 2008
Posts:
14
Plugin Contributions:
0

Re: placing the Date on my site.

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.

25 May 2008, 4:39 PM
#5
lucasnlaura avatar

lucasnlaura

New Zenner

Join Date:
May 2008
Posts:
14
Plugin Contributions:
0

Re: placing the Date on my site.

ok, so i see the date color is adjusted with the body font color. is there a way to seperate the two?

25 May 2008, 5:11 PM
#6
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: placing the Date on my site.

.firstbar{
color:#FF0000;
font-size: 1.0em;
font-weight: bold;
}

Add above to your current template's stylesheet.
Alter red code to suit your requirements.
:smile:

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

25 May 2008, 7:49 PM
#7
lucasnlaura avatar

lucasnlaura

New Zenner

Join Date:
May 2008
Posts:
14
Plugin Contributions:
0

Re: placing the Date on my site.

perfect. thank you misty.