Results 1 to 7 of 7
  1. #1
    Join Date
    May 2008
    Posts
    14
    Plugin Contributions
    0

    Default 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

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default 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.

    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

  3. #3
    Join Date
    Mar 2007
    Location
    AZ
    Posts
    1,911
    Plugin Contributions
    2

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

    Thanks!
    T

  4. #4
    Join Date
    May 2008
    Posts
    14
    Plugin Contributions
    0

    Default 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.

  5. #5
    Join Date
    May 2008
    Posts
    14
    Plugin Contributions
    0

    Default 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?

  6. #6
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: placing the Date on my site.

    Code:
    .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.

  7. #7
    Join Date
    May 2008
    Posts
    14
    Plugin Contributions
    0

    Default Re: placing the Date on my site.

    perfect. thank you misty.

 

 

Similar Threads

  1. v151 Placing ZC in a Normal Site
    By firstcapitalfirearms in forum General Questions
    Replies: 2
    Last Post: 25 Nov 2013, 04:30 PM
  2. Easy Populate and the Date added updated to todays date issue.
    By cyphercys in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 9 Mar 2010, 04:26 AM
  3. Placing duplicate shop on second site... Possible?
    By STFlats in forum General Questions
    Replies: 3
    Last Post: 30 Jun 2008, 03:25 AM
  4. Placing zencart info... (sideboxes) on another site or page
    By 2Ewenique in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 8 Aug 2006, 05:06 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg