Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14
  1. #11
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Adding Code to HEAD and BODY tags?

    If you put it as-is in a PHP file as I indicated, it will work fine. No need to use a .js file.
    .

    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.

  2. #12
    Join Date
    Aug 2007
    Location
    Cannon Beach, OR
    Posts
    180
    Plugin Contributions
    0

    Default Re: Adding Code to HEAD and BODY tags?

    Thanks a lot DrByte. That worked fine. In retrospect, I see I could have just tried it, and then seen the results with a "view source". I would have seen that it worked just fine. Sorry for the extra query. I didn't grasp what you were telling me to do at first.

  3. #13
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Adding Code to HEAD and BODY tags?

    No worries. If you peek at the wiki link I posted earlier in this thread you'll see more about how this works.
    .

    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.

  4. #14
    Join Date
    Nov 2020
    Posts
    226
    Plugin Contributions
    1

    Default Re: Adding Code to HEAD and BODY tags?

    Hey guys, seems new forum posts are often missed, i created a new post after reading this post and trying to make an on load js file. it sort of worked so im close, was hoping someone could assst me in working out where i went wrong, im just trying to add trust pilot to my sites header to try and boost sales, if anyone can spare a bit of time to help be eternally grateful :)

    https://www.zen-cart.com/showthread....ght=trustpilot

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. v151 Head's tags goes into body tag.
    By zadok.daniel in forum General Questions
    Replies: 3
    Last Post: 7 Jan 2014, 02:42 AM
  2. Replies: 8
    Last Post: 28 Feb 2012, 03:05 PM
  3. Need to add code below </head> tag and above <body> tag in product page
    By Danielle in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 11 Apr 2010, 07:53 PM
  4. Adding code to <head> tags in ezpages
    By donplay in forum General Questions
    Replies: 1
    Last Post: 3 May 2009, 05:13 AM
  5. Adding Custom Javascript to head and body
    By Xena in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 19 Jun 2007, 04:30 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR