Thread: Code Placement

Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Oct 2011
    Posts
    68
    Plugin Contributions
    0

    Default Code Placement

    Hello,

    Where do I place the following codes?

    <link rel="stylesheet" href="nivo-slider.css" type="text/css" media="screen" />
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script>
    <script src="jquery.nivo.slider.pack.js" type="text/javascript"></script>

    The above is for the nivo slider and it states that it is usually inserted in the head section. I tried putting it on html_header but it doesnt seem to work.

    Any help would be much appreciated.

    Thank you

  2. #2
    Join Date
    May 2010
    Location
    WA State
    Posts
    1,678
    Plugin Contributions
    3

    Default Re: Code Placement

    That's the file I've used for other, similar scripts and it has worked. Mine don't link to an external site, though. Not sure if that's a factor. Did you add it to the correct html_header.php file? The one in your overrides directory?

  3. #3
    Join Date
    Oct 2011
    Posts
    68
    Plugin Contributions
    0

    Default Re: Code Placement

    Got it to work now, forgot to add 'echo' at the start.
    Just wondering, does it matter where you paste the code in html_header?

  4. #4
    Join Date
    Jan 2004
    Posts
    66,445
    Plugin Contributions
    81

    Default Re: Code Placement

    There are other forum threads discussing how to do it without touching html_header.php at all, since you don't need to. The less you change, the easier your future upgrades will be.
    .

    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.

  5. #5
    Join Date
    Oct 2011
    Posts
    68
    Plugin Contributions
    0

    Default Re: Code Placement

    Thank you for the replies.
    Managed to get it to work without touching html_header.

 

 

Similar Threads

  1. v1371 Spring Metrics Code Placement
    By spectreman in forum General Questions
    Replies: 4
    Last Post: 14 Aug 2012, 06:35 AM
  2. Shopzilla Tracking Code Placement?
    By sartor in forum All Other Contributions/Addons
    Replies: 12
    Last Post: 5 Sep 2011, 09:20 AM
  3. Code Placement??
    By Coffinwear in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 4 Apr 2010, 09:28 AM
  4. Code Placement for SSL logo
    By KADesign in forum General Questions
    Replies: 2
    Last Post: 25 Jan 2008, 03:42 PM
  5. Tracking Code placement - Shopzilla
    By crazycucumber in forum General Questions
    Replies: 0
    Last Post: 3 Apr 2007, 08:29 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