Page 3 of 3 FirstFirst 123
Results 21 to 29 of 29
  1. #21
    Join Date
    Nov 2010
    Posts
    52
    Plugin Contributions
    0

    Default Re: Using javascript and a separate css for the header.

    Quote Originally Posted by kobra View Post
    Looking at your 2 pages I did not see alignment in the js being used??
    The ZenCart is using jscript_seasons.js and seasons is not seen on your mockup page??

    If this is square and correct try entering in a COPY for your template in the tpl_header.php file tpl_header.php and change from
    Code:
    <!--bof-branding display-->
    <div id="logoWrapper">
        <div id="logo"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?></div>
    And replace with this and see what results
    Code:
    <!--bof-branding display-->
    <div id="logoWrapper">
        <div id="logo"><a href="http://www.oceanabyssaquatics.ca/store/"><img src="./logo.jpg" onload="setImgByDate(this,holiday)"></div>
    If this works should later add the html ALT entry
    Yes the js file names are different on the mockup page. I renamed them based on the tutorials for adding js to ZC . The js on the mockup page was called holiday.js the code is identical.

  2. #22
    Join Date
    Nov 2010
    Posts
    52
    Plugin Contributions
    0

    Default Re: Using javascript and a separate css for the header.

    OK ...we are getting somewhere The default logo is coming up. But not the date based logo.

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

    Default Re: Using javascript and a separate css for the header.

    The default logo is coming up. But not the date based logo.
    Initially you did not have a distinct logo and not on your mockup page???

    I know that I suggested this but this will take a different method to implement and you seemed reluctant earlier to seperate them...
    Zen-Venom Get Bitten

  4. #24
    Join Date
    Nov 2010
    Posts
    52
    Plugin Contributions
    0

    Default Re: Using javascript and a separate css for the header.

    GOT IT!!! Rather than using the jscript_holiday.js I used jscript_holiday.php

    On problem down...one to go....but not until tomorrow.

    I will just continue this thread tomorrow if I have issues with the ad banner scroller.

    Thanks for your help.

  5. #25
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Using javascript and a separate css for the header.

    If you used the method I suggested earlier, you would have the ALT text properly appearing, as well as preventing yourself from having to add and then remove or change the /store/ path later when you relocate the template to your live site.

    But, the choice is yours.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  6. #26
    Join Date
    Nov 2010
    Posts
    52
    Plugin Contributions
    0

    Default Re: Using javascript and a separate css for the header.

    Quote Originally Posted by DrByte View Post
    If you used the method I suggested earlier, you would have the ALT text properly appearing, as well as preventing yourself from having to add and then remove or change the /store/ path later when you relocate the template to your live site.

    But, the choice is yours.
    I won't be relocating it. I will use an automatic redirect from the old design to the new using htaccess.

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

    Default Re: Using javascript and a separate css for the header.

    I won't be relocating it. I will use an automatic redirect from the old design to the new using htaccess.
    You can make the href relative and/or workout DrBytes better solution...
    Just suggested a hard coded solution to take out any quirks that might have cropped up

    Might consider actually relocating with a htaccess redirect to the new spot for the long term future
    Zen-Venom Get Bitten

  8. #28
    Join Date
    Nov 2010
    Posts
    52
    Plugin Contributions
    0

    Default Re: Using javascript and a separate css for the header.

    Quote Originally Posted by DrByte View Post
    If you used the method I suggested earlier, you would have the ALT text properly appearing, as well as preventing yourself from having to add and then remove or change the /store/ path later when you relocate the template to your live site.

    But, the choice is yours.
    I tried your method earlier and the result was a blank page...so I changed it back.

    I know you fixed an error you made so I tried it again (just now)....no logo banner came up at all....so I changed it back.

    I will give it another shot tomorrow.

  9. #29
    Join Date
    Nov 2010
    Posts
    52
    Plugin Contributions
    0

    Default Re: Using javascript and a separate css for the header.

    Quote Originally Posted by kobra View Post

    Might consider actually relocating with a htaccess redirect to the new spot for the long term future
    LOL I just that a few posts above this one.

 

 
Page 3 of 3 FirstFirst 123

Similar Threads

  1. v154 Need a javascript expert! Can't trigger css class using href...
    By Feznizzle in forum General Questions
    Replies: 10
    Last Post: 27 May 2016, 05:45 PM
  2. Loss of CSS styles images and main header logo on SSL when using the server's browser
    By oldwolfe in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 13 Oct 2009, 02:13 PM
  3. Using Separate Image for Shopping Cart Header
    By Craig Robbo in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 5 Feb 2009, 11:06 AM
  4. Using a CSS Navigation Menu for the top NAV bar
    By spikeycactus in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 30 Oct 2008, 10:59 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