Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2008
    Posts
    264
    Plugin Contributions
    0

    Default Add Script to Head in only 1 EZ page

    unique question. I'm using 1.39

    This is my home page http://www.artonthevines.com/STL_Art...page=page&id=9

    I need to add a script in between the <head> tags but ONLY to this page, any idea how to do that? I added it to the html_header but it is showing up on every page. It is not the typical home page so not sure how to do this?

    any ideas


    thank you

  2. #2
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    3,184
    Plugin Contributions
    30

    Default Re: Add Script to Head in only 1 EZ page

    You would just use a hook similar to this...

    Code:
    <?php if (in_array($ezpage_id,explode(",",'2,5,1,14,15,16,17,18'))) include("some_include.php"); ?>
    in perhaps includes/languages/english/your_template/meta_tags.php

    ~Melanie
    PRO-Webs, Inc. :: Recent Zen Cart Projects :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are NOT answered.

  3. #3
    Join Date
    Aug 2008
    Posts
    264
    Plugin Contributions
    0

    Default Re: Add Script to Head in only 1 EZ page

    Awesome, thank you, works great

  4. #4
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    3,184
    Plugin Contributions
    30

    Default Re: Add Script to Head in only 1 EZ page

    Good to hear
    PRO-Webs, Inc. :: Recent Zen Cart Projects :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are NOT answered.

 

 

Similar Threads

  1. non-english head tags goes out of <head></head>
    By Jerry5763837 in forum General Questions
    Replies: 5
    Last Post: 5 Jun 2012, 02:21 PM
  2. Replies: 8
    Last Post: 28 Feb 2012, 03:05 PM
  3. HELP! Main page <head></head>
    By mwnname in forum Basic Configuration
    Replies: 2
    Last Post: 21 Nov 2009, 02:23 PM
  4. Only the HEAD section is being built on page render
    By robgt in forum General Questions
    Replies: 3
    Last Post: 20 Mar 2008, 11:44 PM
  5. Adding a head tag script
    By gardengate in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 13 Oct 2006, 01:46 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
  •